r180638 - in /branches/google/gcc-4_6/gcc: cp/C...
jyasskin@gcc.gnu.org
jyasskin@gcc.gnu.org
Fri Oct 28 23:46:00 GMT 2011
Author: jyasskin
Date: Fri Oct 28 23:46:06 2011
New Revision: 180638
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180638
Log:
Allow static const floats unless -pedantic is passed.
This 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.
Added:
branches/google/gcc-4_6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C
branches/google/gcc-4_6/gcc/testsuite/g++.dg/cpp0x/constexpr-static8_nonpedantic.C
Modified:
branches/google/gcc-4_6/gcc/cp/ChangeLog.google-4_6
branches/google/gcc-4_6/gcc/cp/decl.c
branches/google/gcc-4_6/gcc/testsuite/ChangeLog.google-4_6
More information about the Gcc-cvs
mailing list