summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/class/class.union/p2-0x.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move -Wstatic-float-init fixit into a note & don't recover as if constexprDavid Blaikie2013-01-291-1/+1
| | | | llvm-svn: 173841
* Sync 'in class initialization of static const double' extension up with GCC,Richard Smith2013-01-251-1/+1
| | | | | | | | | | | | | and split it out of -Wgnu into its own warning flag. * In C++11, this is now a hard error (GCC has no extension here in C++11 mode). The error can be disabled with -Wno-static-float-init, and has a fixit to add 'constexpr'. * In C++98, this is still an ExtWarn, but is now controlled by -Wstatic-float-init as well as -Wgnu. llvm-svn: 173414
* Make sure we still reject static data members in anonymous unions in C++11.Richard Smith2012-02-161-0/+12
| | | | llvm-svn: 150724
* C++11 allows unions to have static data members. Remove the correspondingRichard Smith2012-02-161-0/+36
restriction and add some tests. llvm-svn: 150721
OpenPOWER on IntegriCloud