]> granicus.if.org Git - clang/commit
If name lookup finds different type declarations in different scopes
authorDouglas Gregor <dgregor@apple.com>
Wed, 11 Aug 2010 14:45:53 +0000 (14:45 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 11 Aug 2010 14:45:53 +0000 (14:45 +0000)
commit7f1c547ee6cd413845f7df9713c701f99866f91d
tree7d94d3aa703e2adf2fc5bda776d81e62ebb058cf
parent6bf1830875673d6bd6c5bfcd65c9dcabfb45958b
If name lookup finds different type declarations in different scopes
that actually refer to the same underlying type, it is not an
ambiguity; add uniquing support based on the canonical type of type
declarations. Fixes <rdar://problem/8296180>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110806 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp [new file with mode: 0644]