[Bug c++/90938] [9 Regression] Initializing array with {1} works, but not {0}
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 5 01:35:00 GMT 2020
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
<msebor@gcc.gnu.org>:
https://gcc.gnu.org/g:1665d97d37559ea7403d5b3e0efd5c5ae416e1ae
commit r9-8338-g1665d97d37559ea7403d5b3e0efd5c5ae416e1ae
Author: Martin Sebor <msebor@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.
More information about the Gcc-bugs
mailing list