summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-24 22:24:50 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-24 22:24:50 +0000
commit89ab56d5fbe36b28e3228d5b3deebb0357d7c5c5 (patch)
treec09625d7cbdf935844fa38636e2db92658659aba /clang/lib
parent3ea0657d54f93444cdefccb6e62f99835f6be427 (diff)
downloadbcm5719-llvm-89ab56d5fbe36b28e3228d5b3deebb0357d7c5c5.tar.gz
bcm5719-llvm-89ab56d5fbe36b28e3228d5b3deebb0357d7c5c5.zip
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. llvm-svn: 142862
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaLookup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index d5bee1d0e36..5964d7232a8 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud