]> granicus.if.org Git - clang/commit
[modules] When considering merging a newly-declared typedef into an imported
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 10 Aug 2014 02:20:15 +0000 (02:20 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 10 Aug 2014 02:20:15 +0000 (02:20 +0000)
commit478bfc77fc86289f70b33bdd1ffaf4eda49f906e
tree2d008eb5d18b728b5a38a97665817f69ee347826
parent16622ac30ea24f1b708b7b4721b3edb09116b293
[modules] When considering merging a newly-declared typedef into an imported
one, perform the import if the types match even if the imported declaration is
hidden. Otherwise, NamedDecl::declarationReplaces will drop one of the name
lookup entries, making the typedef effectively inaccessible from one of the
modules that declared it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Modules/Inputs/merge-typedefs/a1.h [new file with mode: 0644]
test/Modules/Inputs/merge-typedefs/a2.h [new file with mode: 0644]
test/Modules/Inputs/merge-typedefs/b1.h [new file with mode: 0644]
test/Modules/Inputs/merge-typedefs/b2.h [new file with mode: 0644]
test/Modules/Inputs/merge-typedefs/module.modulemap [new file with mode: 0644]
test/Modules/merge-typedefs.cpp [new file with mode: 0644]