https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125095

--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:202ca69360af7f8b39a77ec3ec6c6be2b37d320e

commit r17-367-g202ca69360af7f8b39a77ec3ec6c6be2b37d320e
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.

Reply via email to