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

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Martin Sebor
<mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:1665d97d37559ea7403d5b3e0efd5c5ae416e1ae

commit r9-8338-g1665d97d37559ea7403d5b3e0efd5c5ae416e1ae
Author: Martin Sebor <mse...@redhat.com>
Date:   Wed Mar 4 18:32:40 2020 -0700

    PR c++/90938 - Initializing array with {1} works, but not {0}

    gcc/cp/ChangeLog:

        PR c++/90938
        * tree.c (type_initializer_zero_p): Fail for structs initialized
        with non-structs.

    gcc/testsuite/ChangeLog:

        PR c++/90938
        * g++.dg/init/array55.C: New test.
        * g++.dg/init/array56.C: New test.
        * g++.dg/cpp2a/nontype-class33.C: New test.

Reply via email to