Fix a similar problem with qualified lookup through using directives,

although in this case we probably just run a risk of duplicating work;
I can't think of how this could cause a bug.

llvm-svn: 86680
This commit is contained in:
John McCall 2009-11-10 09:25:37 +00:00
parent 9757d0363d
commit b8be78b753
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ static bool LookupQualifiedNameInUsingDirectives(Sema::LookupResult &R,
// We have already looked into the initial namespace; seed the queue
// with its using-children.
for (; I != E; ++I) {
NamespaceDecl *ND = (*I)->getNominatedNamespace();
NamespaceDecl *ND = (*I)->getNominatedNamespace()->getOriginalNamespace();
if (Visited.insert(ND).second)
Queue.push_back(ND);
}