re PR c++/58102 (rejects valid initialization of constexpr object with mutable member)
authorJason Merrill <jason@redhat.com>
Tue, 18 Nov 2014 13:34:08 +0000 (08:34 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 18 Nov 2014 13:34:08 +0000 (08:34 -0500)
commit023d89c70b3912087d9e4a1db51993ed94fdd088
treec02e1cc1ad1d88205b9940959b4708dca434d9bb
parentbee1d478578db03924bf2505092db9ee967190da
re PR c++/58102 (rejects valid initialization of constexpr object with mutable member)

PR c++/58102
* typeck2.c (store_init_value): Set it.
* cp-tree.h (CONSTRUCTOR_MUTABLE_POISON): New.
* constexpr.c (cxx_eval_outermost_constant_expr): Check it.

From-SVN: r217713
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-tree.h
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp0x/constexpr-mutable2.C [new file with mode: 0644]