Sync 'in class initialization of static const double' extension up with GCC,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Jan 2013 04:22:16 +0000 (04:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Jan 2013 04:22:16 +0000 (04:22 +0000)
commitcf656385ea2da9c7c29eff9c2aa7a89d81fb5703
treed672aa132f2903b334fa317c7d22cf276e58187d
parent44f750a3e58eb6ae84a4476aa4befc0bb406dffa
Sync 'in class initialization of static const double' extension up with GCC,
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
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/class/class.static/class.static.data/p3.cpp
clang/test/CXX/class/class.union/p2-0x.cpp
clang/test/SemaCXX/cxx0x-class.cpp
clang/test/SemaCXX/warn-static-const-float.cpp [new file with mode: 0644]