diff options
author | Martin Sebor <msebor@redhat.com> | 2019-08-01 23:45:36 +0000 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2019-08-01 23:45:36 +0000 |
commit | 2f65414f43f5fe3fddea13f1c0995b45b01c6f81 (patch) | |
tree | 7c4a96774ea3cef422ba9596824ceb090bf0ff21 /gcc/gcc-rich-location.c | |
parent | 6988a2ec402eb06621fe660227ae57838a3662a1 (diff) |
PR c++/90947 - Simple lookup table of array of strings is miscompiled
gcc/cp/ChangeLog:
PR c++/90947
* decl.c (reshape_init_array_1): Avoid truncating initializer
lists containing string literals.
gcc/testsuite/ChangeLog:
PR c++/90947
* c-c++-common/array-1.c: New test.
* g++.dg/abi/mangle73.C: New test.
* g++.dg/cpp2a/nontype-class23.C: New test.
* g++.dg/init/array53.C: New test.
gcc/ChangeLog:
PR c++/90947
* tree.c (type_initializer_zero_p): Define.
* tree.h (type_initializer_zero_p): New function.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@273989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc-rich-location.c')
0 files changed, 0 insertions, 0 deletions