]> granicus.if.org Git - clang/commit
Fix handling of redeclaration lookup for using declarations, where the prior
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 Apr 2014 01:03:38 +0000 (01:03 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 Apr 2014 01:03:38 +0000 (01:03 +0000)
commit490bfbe51f6feb93b48d4b0b0ec94cb6a51a8997
tree6e3926b42620656de01d3274700659b9c37e3e38
parent9e7d01ab9838653c340c92e3b92135e6fbf05ff8
Fix handling of redeclaration lookup for using declarations, where the prior
declaration is not visible. Previously we didn't find hidden friend names in
this redeclaration lookup, because we forgot to treat it as a redeclaration
lookup. Conversely, we did find some local extern names, but those don't
actually conflict with a namespace-scope using declaration, because the only
conflicts we can get are scope conflicts, not conflicts due to the entities
being members of the same namespace.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206011 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaLookup.cpp
test/SemaCXX/using-decl-1.cpp