A partially initialized variable isn't constant.
commit56da7fe60998b5072a48e832cc28e85a0bc245ae
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Sep 2017 09:11:40 +0000 (10 09:11 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Sep 2017 09:11:40 +0000 (10 09:11 +0000)
tree6ba2f4cbb11bda04c8d43bca61729bb1c8e59303
parente5036550b8dfbcb976500cf8c016a7abeb7ad0ed
A partially initialized variable isn't constant.

* constexpr.c (reduced_constant_expression_p): If
CONSTRUCTOR_NO_IMPLICIT_ZERO, check that all fields are initialized.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251948 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c