re PR fortran/31618 ([4.2, 4.1 only] backspace intrinsic is not working on an unforma...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 23 Apr 2007 19:43:54 +0000 (19:43 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 23 Apr 2007 19:43:54 +0000 (19:43 +0000)
commite08e57d0c51f46403f3f1aebfa8135c976468aab
treea0f753f8651bc3ca395a636bc80a13ee8f1a693c
parent10e4d956c1cc45eae31573b566694339f0fa6cbe
re PR fortran/31618 ([4.2, 4.1 only] backspace intrinsic is not working on an unformatted file)

2007-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/31618
* io/transfer.c (read_block_direct):  Instead of calling us_read,
set dtp->u.p.current_unit->current_record = 0 so that pre_position
will read the record marker.
(data_transfer_init):  For different error conditions, call
generate_error, then return.

2007-04-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/31618
* gfortran.dg/backspace_8.f:  New test case.

From-SVN: r124079
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/backspace_8.f [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/transfer.c