]> granicus.if.org Git - clang/commitdiff
When we perform a lookup for a dependent name that is a member of an
authorDouglas Gregor <dgregor@apple.com>
Mon, 24 Oct 2011 22:24:50 +0000 (22:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 24 Oct 2011 22:24:50 +0000 (22:24 +0000)
unknown specialization, treat this the same way as if the name were
not found in the current instantiation. No actual functionality
change, since apparently nothing depends on this.

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

lib/Sema/SemaLookup.cpp

index d5bee1d0e36844e16dde7596425ac49fd967a780..5964d7232a85bde74088422de43621d06d16b588 100644 (file)
@@ -1561,13 +1561,14 @@ bool Sema::LookupParsedName(LookupResult &R, Scope *S, CXXScopeSpec *SS,
         return false;
 
       R.setContextRange(SS->getRange());
-
       return LookupQualifiedName(R, DC);
     }
 
     // We could not resolve the scope specified to a specific declaration
     // context, which means that SS refers to an unknown specialization.
     // Name lookup can't find anything in this case.
+    R.setNotFoundInCurrentInstantiation();
+    R.setContextRange(SS->getRange());
     return false;
   }