DescriptionThis patch allows us to migrate to C++11 more incrementally, since we can leave the static const float initializations in place, flip the switch, and then change them to use constexpr.
We should NOT forward-port this to any gcc-4.7 branches.
gcc/cp/ChangeLog.google-4_6
2011-10-28 Jeffrey Yasskin <jyasskin@google.com>
google ref 5514746; backport of r179121
Modified locally to only block static const literals in -pedantic
mode.
2011-09-23 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (check_static_variable_definition): Allow in-class
initialization of static data member of non-integral type in
permissive mode.
gcc/testsuite/ChangeLog.google-4_6
2011-10-28 Jeffrey Yasskin <jyasskin@google.com>
google ref 5514746; backport of r179121
Modified locally to only block static const literals in -pedantic
mode.
* g++.dg/cpp0x/constexpr-static8_nonpedantic.C: New.
2011-09-23 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp0x/constexpr-static8.C: New.
Patch Set 1 #Patch Set 2 : Add google ref # #Patch Set 3 : Fix Diego's comments. #
MessagesTotal messages: 3
|