r175409 - in /trunk/gcc: cp/ChangeLog cp/init.c...

jason@gcc.gnu.org jason@gcc.gnu.org
Sun Jun 26 14:00:00 GMT 2011


Author: jason
Date: Sun Jun 26 14:00:33 2011
New Revision: 175409

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175409
Log:
	PR c++/49528
	* semantics.c (potential_constant_expression_1): A TARGET_EXPR
	with a cleanup isn't constant.
	(cxx_eval_constant_expression): Likewise.
	* init.c (expand_default_init): Use maybe_constant_init.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-cleanup.C
    trunk/gcc/testsuite/g++.dg/init/ref19.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list