]> granicus.if.org Git - clang/commit
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)
commitd1a55a6631b11b6c5364772023451c547eafedee
tree67552a6ac38ebde3c3ffd7af81febb69d82c0297
parent59c0a818a79be850f7ae8fdafd57a1710e5b809a
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165263 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclCXX.cpp
test/CXX/dcl.dcl/basic.namespace/namespace.def/p7.cpp
test/SemaCXX/libstdcxx_atomic_ns_hack.cpp [new file with mode: 0644]