diff options
author | Martin Sebor <msebor@redhat.com> | 2020-03-04 18:19:31 -0700 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2020-03-04 18:19:31 -0700 |
commit | cb2409c60aeff498064346f85165531a3bbead14 (patch) | |
tree | d4339dd2f882ebf991d3047bd9549683abc233c1 /gcc/print-rtl.c | |
parent | 547cdf8510a0096d5d6e4d54f0e3fe51d7b70e13 (diff) | |
download | gcc-cb2409c60aeff498064346f85165531a3bbead14.zip gcc-cb2409c60aeff498064346f85165531a3bbead14.tar.gz gcc-cb2409c60aeff498064346f85165531a3bbead14.tar.bz2 |
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.
Diffstat (limited to 'gcc/print-rtl.c')
0 files changed, 0 insertions, 0 deletions