diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-24 22:24:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-24 22:24:50 +0000 |
commit | 3eafbb85d1d9d108f089fd2451ddb6932eaafef2 (patch) | |
tree | ce658870ac62051af38e5e9c6c2e1cfa07c4c598 /lib/Sema/SemaLookup.cpp | |
parent | aa0aeb1cbe117db68d35700cb3a34aace0f99b99 (diff) |
When we perform a lookup for a dependent name that is a member of an
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
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index d5bee1d0e3..5964d7232a 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -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; } |