[Bug libfortran/122936] Read for user defined data types in Fortran fails if there is additional information in the row

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 15 19:57:00 GMT 2025


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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <jvdelisle@gcc.gnu.org>:

https://gcc.gnu.org/g:381fc8ed0f1530d0c30d5dbb6119b370fd91ba68

commit r16-6142-g381fc8ed0f1530d0c30d5dbb6119b370fd91ba68
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date:   Sun Dec 14 13:23:36 2025 -0800

    Fortran: Fix bad read involving extra input text.

            The problem here involved DTIO mixed with non-DTIO
            variables in list formatted reads.  The previous fix to
            PR105361 broke the test case here by mis-handling the
            end of file conditions. It was found that the code could
            be significantly reduced as well.

            PR libfortran/122936

    libgfortran/ChangeLog:

            * io/list_read.c (finish_list_read): Remove the use of hit_eof
            and free_line. Simplify the logic. Add comments to clarify.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr122936.f90: New test.


More information about the Gcc-bugs mailing list