summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-06-30 09:48:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-06-30 09:48:50 +0000
commitaa4bc18240c03b5ed7952aa5e013c081f8733ed3 (patch)
treeac4506ba6246ada70e8fc4fb889bd6ddd7329352 /lib/CodeGen/CodeGenFunction.cpp
parentad5f8336f96911805bb625cc4fb1a4487745508a (diff)
downloadclang-aa4bc18240c03b5ed7952aa5e013c081f8733ed3.tar.gz
clang-aa4bc18240c03b5ed7952aa5e013c081f8733ed3.tar.bz2
clang-aa4bc18240c03b5ed7952aa5e013c081f8733ed3.tar.xz
Reinstate r185229, reverted in r185256, with a tweak: further ignore the
standard's rule that an extern "C" declaration conflicts with any entity in the global scope with the same name. Now we only care if the global scope entity is a variable declaration (and so might have the same mangled name as the extern "C" declaration). This has been reported as a standard defect. Original commit message: PR7927, PR16247: Reimplement handling of matching extern "C" declarations across scopes. When we declare an extern "C" name that is not a redeclaration of an entity in the same scope, check whether it redeclares some extern "C" entity from another scope, and if not, check whether it conflicts with a (non-extern-"C") entity in the translation unit. When we declare a name in the translation unit that is not a redeclaration, check whether it conflicts with any extern "C" entities (possibly from other scopes). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions