constexpr.c (maybe_constant_init): Pull out TARGET_EXPR_INITIAL.
authorJason Merrill <jason@redhat.com>
Tue, 25 Oct 2016 17:23:44 +0000 (13:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 25 Oct 2016 17:23:44 +0000 (13:23 -0400)
commitf64e0c029c452c9fc508adebf18d0ceb3ffdc066
treeaadf065579df3086e8a1c0647f565aec732d4588
parent90e261e494a5f1fda83b815f513c5621fa5f8c83
constexpr.c (maybe_constant_init): Pull out TARGET_EXPR_INITIAL.

* 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.

From-SVN: r241531
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-static12.C [new file with mode: 0644]