re PR c++/90947 (Simple lookup table of array of strings is miscompiled)
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Oct 2019 07:10:57 +0000 (08:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Oct 2019 07:10:57 +0000 (08:10 +0100)
commitfbdbe8b06a1c5626ad6360a4af33cb638c14cda1
tree6f3b3270e66eb2e75172648e9848a118150d9d5e
parente4c431266f9aaf604edfca68e852ae8efe966e8e
re PR c++/90947 (Simple lookup table of array of strings is miscompiled)

PR c++/90947
* tree.h (type_initializer_zero_p): Remove.
* tree.c (type_initializer_zero_p): Remove.
cp/
* cp-tree.h (type_initializer_zero_p): Declare.
* decl.c (reshape_init_array_1): Formatting fix.
* tree.c (type_initializer_zero_p): New function.  Moved from
../tree.c, use next_initializable_field, formatting fix.  Return
false for TYPE_NON_AGGREGATE_CLASS types.

From-SVN: r277656
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/init/array54.C [new file with mode: 0644]
gcc/tree.c
gcc/tree.h