Egriegious hack to support libstdc++4.6's broken <atomic> header, which defines
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Oct 2012 22:13:39 +0000 (22:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Oct 2012 22:13:39 +0000 (22:13 +0000)
commit45bb8855e0ecca4f47e1ca310bc11e2106e226bb
treefd6600e4fd9e3731226d61fc347e12b125e87b36
parentac34b5c9e5fd76b04c1d718c80364c262f6d2ed6
Egriegious hack to support libstdc++4.6's broken <atomic> header, which defines
a non-inline namespace, then reopens it as inline to try to add its symbols to
the surrounding namespace. In this one special case, permit the namespace to be
reopened as inline, and patch up the name lookup tables to match.

llvm-svn: 165263
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p7.cpp
clang/test/SemaCXX/libstdcxx_atomic_ns_hack.cpp [new file with mode: 0644]