]> granicus.if.org Git - clang/commit
A quick fix to allow return type deduction on member templates
authorFaisal Vali <faisalv@yahoo.com>
Sat, 15 Jun 2013 11:54:37 +0000 (11:54 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Sat, 15 Jun 2013 11:54:37 +0000 (11:54 +0000)
commitd570a9282fd1793cbf21c090d80cb0b6b4b89982
tree0714848947734bd7487a1367f34f2f7be8710627
parent04491635b1b497c08f6b04afbf83887718a6d667
A quick fix to allow return type deduction on member templates
by ensuring DiagnoseUseOfDecl is called both on the found decl and the
decl being used (i.e the specialization in the case of member templates) whenever they are different.
Per the exchange captured in
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130610/081636.html
a more comprehensive fix that allows both decls to be passed into DiagnoseUseOfDecl is (or should be) forthcoming relatively soon.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184043 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCXX/cxx1y-deduced-return-type.cpp