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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:4b98b55e0e8b4051f4e3b0afc76b506b01f0889f

commit r10-9926-g4b98b55e0e8b4051f4e3b0afc76b506b01f0889f
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Jun 11 16:55:30 2021 -0400

    c++: constexpr and array[0] [PR101029]

    build_vec_init_elt exits early if we're initializing a zero-element array,
    so build_vec_init needs to do the same to avoid trying to instantiate
things
    after we've already started throwing important bits away.

            PR c++/101029

    gcc/cp/ChangeLog:

            * init.c (build_vec_init): Shortcut [0] case.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/array4.C: New test.

Reply via email to