https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119856
--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:21e0a742e7b70dcb9d8bed87a7d1b1b77b48b364 commit r15-9755-g21e0a742e7b70dcb9d8bed87a7d1b1b77b48b364 Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Sat May 31 08:57:22 2025 -0700 Fortran: Fix handling of parsed format strings. Previously parsed strings with errors were being cached such that subsequent use of the format string were not being checked for errors. PR libfortran/119856 libgfortran/ChangeLog: * io/format.c (parse_format_list): Set the fmt->error message for missing comma. (parse_format): Do not cache the parsed format string if a previous error ocurred. gcc/testsuite/ChangeLog: * gfortran.dg/pr119856.f90: New test. (cherry picked from commit 5ff48aabf76c8913c013f233d3f42bb217a16e7b)