https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115469

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:c90e785bb6fde02cc009f296332a1469fcc1261a

commit r15-1761-gc90e785bb6fde02cc009f296332a1469fcc1261a
Author: Marek Polacek <pola...@redhat.com>
Date:   Wed Jun 26 17:55:21 2024 -0400

    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.

Reply via email to