This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r170365 - in /trunk/gcc: cp/ChangeLog cp/call.c...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 21 Feb 2011 15:35:46 -0000
- Subject: r170365 - in /trunk/gcc: cp/ChangeLog cp/call.c...
Author: jason
Date: Mon Feb 21 15:35:44 2011
New Revision: 170365
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170365
Log:
PR c++/47207
* decl2.c (decl_constant_var_p): A constexpr var needs an
initializer to be constant.
* semantics.c (cxx_eval_constant_expression): Complain about
constexpr var used in its own initializer.
* call.c (set_up_extended_ref_temp): Set
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P too.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-diag2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog