]> granicus.if.org Git - clang/commitdiff
Pass 0 instead of a empty TemplateArgumentListInfo when creating a CXXDependentScopeM...
authorFrancois Pichet <pichet2000@gmail.com>
Sun, 4 Sep 2011 23:00:48 +0000 (23:00 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Sun, 4 Sep 2011 23:00:48 +0000 (23:00 +0000)
Otherwise the fixit doesn't really work for subsequent lookup.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139105 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 234af89e1656dc548f5bbbbeed3d59a323452462..67deb17ec7d9d75ba9a4baf95d8f8950db602a6d 100644 (file)
@@ -1474,7 +1474,8 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R,
                 CXXDependentScopeMemberExpr::Create(
                     Context, DepThis, DepThisType, true, SourceLocation(),
                     SS.getWithLocInContext(Context), NULL,
-                    R.getLookupNameInfo(), &TList);
+                    R.getLookupNameInfo(),
+                    ULE->hasExplicitTemplateArgs() ? &TList : 0);
             CallsUndergoingInstantiation.back()->setCallee(DepExpr);
           } else {
             // FIXME: we should be able to handle this case too. It is correct