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

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

https://gcc.gnu.org/g:653d8174d31cedb44d8ef19777ce51e75b2c3df4

commit r14-12945-g653d8174d31cedb44d8ef19777ce51e75b2c3df4
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