* constexpr.c (maybe_constant_init): Pull out TARGET_EXPR_INITIAL.
commitc6d97004ed9b98873a86ebc9a782a82bf04a3f49
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Oct 2016 17:23:44 +0000 (25 17:23 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Oct 2016 17:23:44 +0000 (25 17:23 +0000)
treeaadf065579df3086e8a1c0647f565aec732d4588
parent9db5ef21c2e18da0b5b13730889f2efbc33698e5
* constexpr.c (maybe_constant_init): Pull out TARGET_EXPR_INITIAL.

(cxx_eval_outermost_constant_expr): Don't return a CONSTRUCTOR
with CONSTRUCTOR_NO_IMPLICIT_ZERO.
(cxx_eval_call_expression): Clear CONSTRUCTOR_NO_IMPLICIT_ZERO.

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