]> granicus.if.org Git - clang/commit
When name lookup for a redeclaration finds declarations that are known
authorDouglas Gregor <dgregor@apple.com>
Wed, 9 Jan 2013 00:47:56 +0000 (00:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 9 Jan 2013 00:47:56 +0000 (00:47 +0000)
commit7dc80e1c4dd44ce2b2da0fc3daff786c3d02348b
tree814ae8e165f243a597bdd6dddd3d1cefea6b7d2a
parente178e70e14380cf8828a307f912fcdbd3882b752
When name lookup for a redeclaration finds declarations that are known
(because they are part of some module) but have not been made visible
(because they are in a submodule that wasn't imported), filter out
those declarations unless both the old declaration and the new
declaration have external linkage. When one or both has internal
linkage, there should be no conflict unless both are imported.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171925 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Modules/Inputs/linkage-merge-sub.h [new file with mode: 0644]
test/Modules/Inputs/module.map
test/Modules/linkage-merge.m [new file with mode: 0644]