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

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

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

commit r17-4855-gab3c778a2530b25713002ba78af65334174deb3d
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.

Reply via email to