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

--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Tue Nov 26 22:56:24 2019
New Revision: 278740

URL: https://gcc.gnu.org/viewcvs?rev=278740&root=gcc&view=rev
Log:
2019-11-26  Jerry DeLisle  <jvdeli...@gcc.ngu.org>

        Backport from mainline
        PR fortran/92100
        io/transfer.c (data_transfer_init_worker): Use fbuf_reset
        instead of fbuf_flush before the seek. Note that fbuf_reset
        calls fbuf_flush and adjusts fbuf pointers.

        gfortran.dg/streamio_18.f90: New test.

Added:
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/streamio_18.f90
Modified:
    branches/gcc-9-branch/gcc/testsuite/ChangeLog
    branches/gcc-9-branch/libgfortran/ChangeLog
    branches/gcc-9-branch/libgfortran/io/transfer.c

Reply via email to