diff options
author | Jason Merrill <jason@redhat.com> | 2023-12-20 11:06:27 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-12-20 12:31:07 -0500 |
commit | 02c0b49798228d777610f898cd9d63ebec43656d (patch) | |
tree | 0b0c9eaef863cace223f895163e0215917a2ee49 /gcc/fortran/options.cc | |
parent | 8dfc52a75d4d6c8be1c61b4aa831b1812b14a10e (diff) | |
download | gcc-02c0b49798228d777610f898cd9d63ebec43656d.zip gcc-02c0b49798228d777610f898cd9d63ebec43656d.tar.gz gcc-02c0b49798228d777610f898cd9d63ebec43656d.tar.bz2 |
c++: throwing dtor and empty try [PR113088]
maybe_splice_retval_cleanup assumed that the function body can't be empty if
there's a throwing cleanup, but when I added cleanups to try blocks in
r12-6333-gb10e031458d541 I didn't adjust that assumption.
PR c++/113088
PR c++/33799
gcc/cp/ChangeLog:
* except.cc (maybe_splice_retval_cleanup): Handle an empty block.
gcc/testsuite/ChangeLog:
* g++.dg/eh/return2.C: New test.
Diffstat (limited to 'gcc/fortran/options.cc')
0 files changed, 0 insertions, 0 deletions