From: John McCall Date: Tue, 10 Nov 2009 09:25:37 +0000 (+0000) Subject: Fix a similar problem with qualified lookup through using directives, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9f01d47dbede88fe557c8955ba2a855be859bc9;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86680 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index eb7c3fa80e..31e64a9f8b 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -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); }