https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87075

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Sep 20 17:09:19 2018
New Revision: 264442

URL: https://gcc.gnu.org/viewcvs?rev=264442&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-array6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c

Reply via email to