Add a -pedantic warning: an anonymous union within an anonymous union is not
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 28 Jan 2013 00:54:05 +0000 (00:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 28 Jan 2013 00:54:05 +0000 (00:54 +0000)
commit254d2666e435e385c4b688dedb2bd4c2f33f0619
tree71519b901fc59c1642724026e25e604b26eadf20
parent73fe152cd8a3b45711d27a9c5bc53debc654e453
Add a -pedantic warning: an anonymous union within an anonymous union is not
permitted in standard C++, despite being silently accepted by many (all?) major
C++ implementations.

llvm-svn: 173643
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/anonymous-union.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp