]> gcc.gnu.org Git - gcc.git/commit
c++: ICE with -fno-exceptions and array init [PR107198]
authorJason Merrill <jason@redhat.com>
Thu, 7 Sep 2023 09:15:01 +0000 (05:15 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 12 Sep 2023 17:26:23 +0000 (13:26 -0400)
commitea5abbb263315e558c876b50c9371b90ddd5e028
treede0a188c76653d14b680f6db9d10e778e3ed700b
parent27e2e7c93e48bcbb63877cc5964fae8dba47d706
c++: ICE with -fno-exceptions and array init [PR107198]

The removed line no longer has an effect on anew5.C error recovery, and
removing it improves error recovery for this testcase.

PR c++/107198

gcc/cp/ChangeLog:

* typeck2.cc (process_init_constructor_array): Use VEC_INIT_EXPR
regardless of seen_error.

gcc/testsuite/ChangeLog:

* g++.dg/eh/no-exceptions1.C: New test.
gcc/cp/typeck2.cc
gcc/testsuite/g++.dg/eh/no-exceptions1.C [new file with mode: 0644]
This page took 0.05855 seconds and 6 git commands to generate.