Committed before I forget.

commit 3e77ce5bcc4d9e467f119bbece5c26cdb4e24210 (HEAD -> master, origin/master, origin/HEAD)
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.

On 1/7/26 10:12 PM, Jerry D wrote:
The attached patch adds a check which detects the missing quote in a namelist read of a character string.  The problem occurs only when the string is digits only when looking for a possible repeat count.

Regression tested on x86_64-linux-gnu.

OK for mainline?

Regards,

Jerry

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.



Reply via email to