commit | 1665d97d37559ea7403d5b3e0efd5c5ae416e1ae | [log] [tgz] |
---|---|---|
author | Martin Sebor <msebor@redhat.com> | Wed Mar 04 18:32:40 2020 -0700 |
committer | Martin Sebor <msebor@redhat.com> | Wed Mar 04 18:32:40 2020 -0700 |
tree | 97feb0ca33c948cb816e2b3090ebce475597f266 | |
parent | 29bb27b7ef23e92151929f785dbad21c5d148bdc [diff] |
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.