PR c++/87075 - ICE with constexpr array initialization.
commit0e9064d25e543fe1ee1207b532ee45404b58f34c
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Sep 2018 17:09:19 +0000 (20 17:09 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Sep 2018 17:09:19 +0000 (20 17:09 +0000)
tree71d22d901a2014f06c47aabfb976d039b8b52bf9
parent6d9e9e1381bdadc15f34f5d5f9a491983d2c60a9
PR c++/87075 - ICE with constexpr array initialization.

My patch of 2016-08-26 to avoid calling a trivial default constructor
introduced TARGET_EXPRs initialized with void_node to express trivial
initialization.  But when this shows up in a VEC_INIT_EXPR, we weren't
prepared to handle it.  Fixed by handling it explicitly in
cxx_eval_vec_init_1.

* constexpr.c (cxx_eval_vec_init_1): Handle trivial initialization.

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