https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107423
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:531ca06c007d4c4d156637083dcad7f25ac8713d commit r13-4681-g531ca06c007d4c4d156637083dcad7f25ac8713d Author: Steve Kargl <ka...@gcc.gnu.org> Date: Mon Dec 12 21:11:07 2022 +0100 Fortran: NULL pointer dereference while parsing a function [PR107423] gcc/fortran/ChangeLog: PR fortran/107423 * parse.cc (parse_spec): Avoid NULL pointer dereference when parsing a function and an error occured. gcc/testsuite/ChangeLog: PR fortran/107423 * gfortran.dg/pr107423.f90: New test.