libgfortran: Fix file position after ENDFILE statement.
commit41e767c482fc903ca5d54014b034c7526dbf8f1c
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 26 Mar 2024 23:44:17 +0000 (26 16:44 -0700)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 27 Mar 2024 00:13:51 +0000 (26 17:13 -0700)
tree0414ba62d07a5e77d797ce128f96d20e06d69a62
parentfb1d50e1f6e07c146999b1b773043c140fdc72b5
libgfortran: Fix file position after ENDFILE statement.

PR libfortran/107031

libgfortran/ChangeLog:

* io/file_pos.c (st_endfile): Remove call to next_record().

gcc/testsuite/ChangeLog:

* gfortran.dg/endfile_5.f90: New test.
gcc/testsuite/gfortran.dg/endfile_5.f90 [new file with mode: 0644]
libgfortran/io/file_pos.c