https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92569
--- Comment #10 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sun Nov 24 19:16:23 2019 New Revision: 278659 URL: https://gcc.gnu.org/viewcvs?rev=278659&root=gcc&view=rev Log: Fix EOF handling for arrays. 2019-11-23 Thomas Koenig <tkoe...@gcc.gnu.org> Harald Anlauf <anl...@gmx.de> PR fortran/92569 * io/transfer.c (transfer_array_inner): If position is at AFTER_ENDFILE in current unit, return from data loop. 2019-11-23 Thomas Koenig <tkoe...@gcc.gnu.org> Harald Anlauf <anl...@gmx.de> PR fortran/92569 * gfortran.dg/eof_6.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/eof_6.f90 Modified: trunk/gcc/testsuite/ChangeLog trunk/libgfortran/ChangeLog trunk/libgfortran/io/transfer.c