https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123012
--- Comment #6 from anlauf at gcc dot gnu.org --- (In reply to GCC Commits from comment #5) > The master branch has been updated by Jerry DeLisle <[email protected]>: > > https://gcc.gnu.org/g:3e77ce5bcc4d9e467f119bbece5c26cdb4e24210 > > commit r16-6685-g3e77ce5bcc4d9e467f119bbece5c26cdb4e24210 > Author: Jerry DeLisle <[email protected]> > Date: Wed Jan 7 21:48:49 2026 -0800 > > Fortran: [PR123012] Silent acceptance of unquoted character items > > PR libfortran/123012 > > libgfortran/ChangeLog: > > * io/list_read.c (read_character): Add new check when no > quate is provided and the character string is digits only. > > gcc/testsuite/ChangeLog: > > * gfortran.dg/namelist_100.f90: New test. Jerry, thanks for the (partial) fix. It does not fix other invalid cases. E.g. replacing the line write(unit,*) " c2 = 2 ," by write(unit,*) " c2 = 2a," lets the modified testcase run without diagnostics, but this is again invalid and detected by NAG and Nvidia, but not current trunk.
