]> granicus.if.org Git - clang/commitdiff
Fix a similar problem with qualified lookup through using directives,
authorJohn McCall <rjmccall@apple.com>
Tue, 10 Nov 2009 09:25:37 +0000 (09:25 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 10 Nov 2009 09:25:37 +0000 (09:25 +0000)
although in this case we probably just run a risk of duplicating work;
I can't think of how this could cause a bug.

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

lib/Sema/SemaLookup.cpp

index eb7c3fa80e2868522277fb8965b63d7bbd67f624..31e64a9f8b45e10feaa216067c8b42d1acf7afb1 100644 (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);
   }