diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-25 13:37:18 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-25 23:35:45 -0500 |
commit | b9bfe25d3a7f925754df3a557e3b1743d21d0c4d (patch) | |
tree | 9d0a9dba214ff20b8beffb26effc5f79a6570ee7 /gcc/cp/ChangeLog | |
parent | b6136084ea86ab0d3fac54be83e50817a3db74a9 (diff) | |
download | gcc-b9bfe25d3a7f925754df3a557e3b1743d21d0c4d.zip gcc-b9bfe25d3a7f925754df3a557e3b1743d21d0c4d.tar.gz gcc-b9bfe25d3a7f925754df3a557e3b1743d21d0c4d.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.
gcc/cp/ChangeLog
2020-02-25 Jason Merrill <jason@redhat.com>
PR c++/88380 - wrong-code with flexible array and NSDMI.
* typeck2.c (process_init_constructor_record): Skip flexarrays.
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index edbc1ba..4deaca6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 2020-02-25 Jason Merrill <jason@redhat.com> + PR c++/88380 - wrong-code with flexible array and NSDMI. + * typeck2.c (process_init_constructor_record): Skip flexarrays. + +2020-02-25 Jason Merrill <jason@redhat.com> + PR c++/87685 - generic lambda 'this' capture error. * lambda.c (lambda_expr_this_capture): Change add_capture_p to int. (maybe_generic_this_capture): Pass -1. |