diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-24 04:59:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-24 04:59:53 +0000 |
commit | 3eefb1c4bd2c562e43f25e0dba657bb32361dd14 (patch) | |
tree | deb707e1fac14d534b44d44e0bf818f6f5088c03 /lib/Sema/SemaExprCXX.cpp | |
parent | 4d0d85c3370f2726c74ba0ece0a5e712830a1d82 (diff) |
Fix overload resolution when calling a member template or taking the
address of a member template when explicit template arguments are
provided.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 6f26ea1eee..3aac415c04 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -2337,6 +2337,7 @@ bool Sema::isImplicitMemberReference(const CXXScopeSpec *SS, NamedDecl *D, if (!Method && (FunTmpl = dyn_cast<FunctionTemplateDecl>(*Ovl))) Method = dyn_cast<CXXMethodDecl>(FunTmpl->getTemplatedDecl()); + // FIXME: Do we have to know if there are explicit template arguments? if (Method && !Method->isStatic()) { Ctx = Method->getParent(); if (isa<CXXMethodDecl>(D) && !FunTmpl) |