aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-12-20 21:34:49 -0500
committerJason Merrill <jason@redhat.com>2023-12-21 22:18:00 -0500
commit2488771b6dc6b05bfdc68dbd6b7bbe0489c8dad0 (patch)
treefe6e93dc97a5ff9e5586ee1db567bb1d4723ffcd /gcc/c
parent5cb79aa2bdb2f6713b595b43637296a2cbdd6521 (diff)
downloadgcc-2488771b6dc6b05bfdc68dbd6b7bbe0489c8dad0.zip
gcc-2488771b6dc6b05bfdc68dbd6b7bbe0489c8dad0.tar.gz
gcc-2488771b6dc6b05bfdc68dbd6b7bbe0489c8dad0.tar.bz2
c++: computed goto from catch block [PR81438]
As with 37722, we don't clean up the exception object if a computed goto leaves a catch block, but we can warn about that. PR c++/81438 gcc/cp/ChangeLog: * decl.cc (poplevel_named_label_1): Handle leaving catch. (check_previous_goto_1): Likewise. (check_goto_1): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/label15.C: Require indirect_jumps. * g++.dg/ext/label16.C: New test.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions