https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127683
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:95b5eb7776b15342b957865bf6dc3317af4b8b10 commit r16-9795-g95b5eb7776b15342b957865bf6dc3317af4b8b10 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)
