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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Harald Anlauf
<[email protected]>:

https://gcc.gnu.org/g:065f26937728fa9ef6679a0540206016c9a946f0

commit r15-11650-g065f26937728fa9ef6679a0540206016c9a946f0
Author: Harald Anlauf <[email protected]>
Date:   Fri Oct 2 23:37:46 2026 +0200

    fortran: Fix error recovery on invalid inquiry refs [PR127683]

    Commit r14-9489 added an assert that could trigger while parsing an inquiry
    ref.  Replace assertion by the return of a failure value.  Fix latent
    frontend memleaks on error return path.

            PR fortran/127683

    gcc/fortran/ChangeLog:

            * primary.cc (gfc_match_varspec): Fix two minor frontend memleaks.
            * symbol.cc (gfc_find_derived_types): Return 0 when sym->assoc is
            NULL.

    gcc/testsuite/ChangeLog:

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

    (cherry picked from commit ab3c778a2530b25713002ba78af65334174deb3d)

Reply via email to