diff options
author | Marek Polacek <polacek@redhat.com> | 2024-06-26 17:55:21 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2024-07-01 18:16:48 -0400 |
commit | c90e785bb6fde02cc009f296332a1469fcc1261a (patch) | |
tree | 2418b849790a5688cf897dc73578f03f256f0ac1 /gcc/ada/debug.adb | |
parent | cb39f7df8d1c16cc2763952a9cc0c828ba88b4d7 (diff) | |
download | gcc-c90e785bb6fde02cc009f296332a1469fcc1261a.zip gcc-c90e785bb6fde02cc009f296332a1469fcc1261a.tar.gz gcc-c90e785bb6fde02cc009f296332a1469fcc1261a.tar.bz2 |
c++: ICE with computed gotos [PR115469]
This is a low-prio crash on invalid code where we ICE on a VAR_DECL
with erroneous type. I thought I'd try to avoid putting such decls
into ->names and ->names_in_scope but that sounds riskier than the
following cleanup.
PR c++/115469
gcc/cp/ChangeLog:
* decl.cc (automatic_var_with_nontrivial_dtor_p): New.
(poplevel_named_label_1): Use it.
(check_goto_1): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/ext/label17.C: New test.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions