[Bug libfortran/92100] Formatted stream IO irreproducible read with binary data in file

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 27 00:51:00 GMT 2019


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

--- Comment #13 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Wed Nov 27 00:50:51 2019
New Revision: 278753

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

        Backport from mainline
        PR fortran/92100
        io/transfer.c (data_transfer_init): 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-8-branch/gcc/testsuite/gfortran.dg/streamio_18.f90
Modified:
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/libgfortran/ChangeLog
    branches/gcc-8-branch/libgfortran/io/transfer.c


More information about the Gcc-bugs mailing list