https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95879
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:ee931e5b7eab59916f4dd77a4ad20c1202153036 commit r16-8320-gee931e5b7eab59916f4dd77a4ad20c1202153036 Author: Paul Thomas <[email protected]> Date: Sat Mar 28 09:08:54 2026 +0000 Fortran: Fix use-after-free in gfc_fixup_sibling_symbols [PR95879] 2026-03-28 Paul Thomas <[email protected]> gcc/fortran PR fortran/95879 * parse.cc (fixup_st_func_formals): New function to update statement function formal argument lists referencing a symbol about to be freed. (gfc_fixup_sibling_symbols): Call fixup_st_func_formals before gfc_release_symbol. gcc/testsuite PR fortran/95879 * gfortran.dg/pr95879.f90: New test.
