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

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

https://gcc.gnu.org/g:c34db1ed893f309cb3a4b9e01a620423c10ca8b1

commit r17-1729-gc34db1ed893f309cb3a4b9e01a620423c10ca8b1
Author: Jerry DeLisle <[email protected]>
Date:   Mon Jun 15 11:58:31 2026 -0700

    libfortran: [PR114618] Format produces incorrect output when contains 1x

    When tabbing left or right it is possible to land in the format buffer
    where some text is over written or skipped improperly. The bad formatting
    depended on whether stream I/O is used or regular I/O. The max position
    has to be calculated correctly in these situations.

    One existing test case is renamed to align with other format T/TL/TR
    test cases.

            PR libfortran/114618

    libgfortran/ChangeLog:

            * io/transfer.c (formatted_transfer_scalar_write): Determine
            possible new max_pos based on file I/O method and adjust
            accordingly

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr114618.f90: Move to...
            * gfortran.dg/fmt_t_10.f90: ...here.
            * gfortran.dg/fmt_t_11.f90: New test.

Reply via email to