[Bug fortran/84245] [13/14/15/16 Regression] ICE in delete_root, at fortran/bbt.c:150

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 28 07:27:45 GMT 2026


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

--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

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

commit r13-10228-ge8896d8d6c4275bbd00ae6fba4b3f609e6affaba
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sat Mar 28 07:23:01 2026 +0000

    Fortran: Avoid rollback ICE after invalid SELECT TYPE [PR84245]

    2026-03-28  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/84245
            * match.cc (gfc_match_select_type): Free the temporary namespace
            only on MATCH_NO. Return immediately on MATCH_ERROR.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr84245.f90: New test.

    (cherry picked from commit 48616938660a9fe64824826ab9172a197631476d)


More information about the Gcc-bugs mailing list