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