re PR fortran/44477 (Sequential I/O with END FILE: File position should be at EoF)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 19 Jun 2010 00:58:28 +0000 (00:58 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 19 Jun 2010 00:58:28 +0000 (00:58 +0000)
commitb9983d610a1d08f2acc105f15bd7dafe293104e4
treec26ee912ace44e4f202d4c98d4191a4565da6421
parentb3b5bf9468756f4f6fe2a88d7c024738888838b2
re PR fortran/44477 (Sequential I/O with END FILE: File position should be at EoF)

2010-06-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/44477
* io/file_pos.c (st_endfile): Add check for ENDFILE when file is
already positioned after the EOF marker. Use find_or_create_unit
instead of find_unit. If unit is not connected, connect it and create
the file with default settings.
* io/transfer.c (data_transfer_init):  Add check for attempted READ or
WRITE when file is already positioned after the EOF marker.

From-SVN: r161020
libgfortran/ChangeLog
libgfortran/io/file_pos.c
libgfortran/io/transfer.c