PR c++/68782
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jan 2016 21:34:10 +0000 (21:34 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jan 2016 21:34:10 +0000 (21:34 +0000)
commit58b0f9ce012e0e9d7ceac6d61a76ad6136b0a97e
treed035f1d3c7a75a68a3d60f7179cbe147b4437151
parent8b7d2f846259156df9d32c2fd69f51ac2e830328
PR c++/68782

gcc/
* tree.c (recompute_constructor_flags): Split out from
build_constructor.
(verify_constructor_flags): New.
* tree.h: Declare them.
gcc/cp/
* constexpr.c (cxx_eval_bare_aggregate): Update TREE_CONSTANT
and TREE_SIDE_EFFECTS.
(cxx_eval_constant_expression) [CONSTRUCTOR]: Call
verify_constructor_flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232847 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-aggr2.C [new file with mode: 0644]
gcc/tree.c
gcc/tree.h