re PR c++/68782 (bad reference member formed with constexpr)
authorJason Merrill <jason@redhat.com>
Tue, 26 Jan 2016 21:34:10 +0000 (16:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 26 Jan 2016 21:34:10 +0000 (16:34 -0500)
commit2d63bc398f7221edbec3e3f1d4ecbacac87cb3a5
treed035f1d3c7a75a68a3d60f7179cbe147b4437151
parent3671c99673af214992ef23e4fd9a28ab2417f33a
re PR c++/68782 (bad reference member formed with constexpr)

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.

From-SVN: r232847
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