diff options
author | Jason Merrill <jason@redhat.com> | 2019-02-20 13:54:45 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-02-20 13:54:45 -0500 |
commit | e0737c209bb0a1075201d22d89baa1575c44d153 (patch) | |
tree | dd75208166f9718dcc53c90f0a861e6e10669c86 /libcpp/include/line-map.h | |
parent | cb13308543771f56bbc932933b9ec7bbb95d37ac (diff) | |
download | gcc-e0737c209bb0a1075201d22d89baa1575c44d153.zip gcc-e0737c209bb0a1075201d22d89baa1575c44d153.tar.gz gcc-e0737c209bb0a1075201d22d89baa1575c44d153.tar.bz2 |
PR c++/88380 - wrong-code with flexible array and NSDMI.
Here 'skipped' was set to -1 to force an explicit initializer for 'uninit'
before the initializer for 'initialized', and so we also tried to emit an
explicit initializer for the flexible array, for which build_zero_init
returns error_mark_node. We should ignore flexarrays even when
skipped < 0.
* typeck2.c (process_init_constructor_record): Skip flexarrays.
From-SVN: r269046
Diffstat (limited to 'libcpp/include/line-map.h')
0 files changed, 0 insertions, 0 deletions