https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125095
--- Comment #24 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:8aa71ec286e70682c93dc140feca3461b9018ea2 commit r15-11176-g8aa71ec286e70682c93dc140feca3461b9018ea2 Author: Harald Anlauf <[email protected]> Date: Tue May 5 22:00:43 2026 +0200 Fortran: fix namelist read for input with comments [PR125095] Namelist input may contain comments (initiated with a "!") after a separator or in the first nonblank position of a namelist input record. Skip comments until end of line, and eat leading whitespace in a subsequent input record. PR libfortran/125095 libgfortran/ChangeLog: * io/list_read.c (read_logical): Eat comments in namelist read mode. (read_integer): Likewise. (read_character): Likewise. (read_complex): Likewise. (read_real): Likewise. gcc/testsuite/ChangeLog: * gfortran.dg/namelist_102.f90: New test. (cherry picked from commit 202ca69360af7f8b39a77ec3ec6c6be2b37d320e)
