]> granicus.if.org Git - clang/commit
Enable clang to continue to parse libstdc++4.6 and stlport after r210091.
authorNico Weber <nicolasweber@gmx.de>
Wed, 2 Jul 2014 23:51:09 +0000 (23:51 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 2 Jul 2014 23:51:09 +0000 (23:51 +0000)
commit31ebd387385909f77990b23ee9e0c83e8ca28acb
tree7ee654552353de466ab2a3a9632530f3cd1f18c0
parentdf4632296b6a12452a597770e782cbd3cd290be8
Enable clang to continue to parse libstdc++4.6 and stlport after r210091.

r210091 made initialization checking more strict in c++11 mode. LWG2193 is
about changing standard libraries to still be valid under these new rules,
but older libstdc++ (e.g. libstdc++4.6 in -D_GLIBCXX_DEBUG=1 mode, or stlport)
do not implement that yet.  So fall back to the C++03 semantics for container
classes in system headers below the std namespace.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212238 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/SemaCXX/cxx0x-initializer-stdinitializerlist-system-header.cpp [new file with mode: 0644]