https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68782
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Jan 26 21:34:10 2016 New Revision: 232847 URL: https://gcc.gnu.org/viewcvs?rev=232847&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-aggr2.C Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/tree.c trunk/gcc/tree.h