PR c++/87075 - ICE with constexpr array initialization.
authorJason Merrill <jason@redhat.com>
Thu, 20 Sep 2018 17:09:19 +0000 (13:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 20 Sep 2018 17:09:19 +0000 (13:09 -0400)
commit3ee378fb554de45f2415cabc7a1a50add5bbe17d
tree71d22d901a2014f06c47aabfb976d039b8b52bf9
parent8850966e26874356b7674516198d67f6384ca9d9
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.

From-SVN: r264442
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-array6.C [new file with mode: 0644]