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

--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Mon May 15 23:48:39 2017
New Revision: 248080

URL: https://gcc.gnu.org/viewcvs?rev=248080&root=gcc&view=rev
Log:
2017-05-15  Jerry DeLisle  <jvdeli...@gcc.gnu.org>

        PR libgfortran/80727
        * transfer.c (read_sf_internal): Remove bogus code to detect EOR.
        (read_block_form): For internal units, generate EOR if no more
        bytes left in unit and we are trying to read with ADVANCE='NO'.

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

Added:
    trunk/gcc/testsuite/gfortran.dg/read_3.f90
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/transfer.c

Reply via email to