2005-01-07 Bud Davis <bdavis9659@comcast.net>
PR fortran/18398
* transfer.c (next_record_r): always skip the
eol search if it was found during sf_read.
* gfortran.dg/fmt_read.f90: New test.
From-SVN: r93035
+2005-01-07 Bud Davis <bdavis9659@comcast.net>
+
+ PR fortran/18398
+ * gfortran.dg/fmt_read.f90: New test.
+
2005-01-06 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/rs6000-ldouble-2.c: New.
--- /dev/null
+! { dg-do run }
+! pr18398, missing data on sequential formatted reads
+! test contributed by Thomas.Koenig@online.de
+ open(7,status='scratch')
+ write (7,'(F12.5)') 1.0, 2.0, 3.0
+ rewind(7)
+ read(7,'(F15.5)') a,b
+! note the read format is wider than the write
+ if (abs(a-1.0) .gt. 1e-5) call abort
+ if (abs(b-2.0) .gt. 1e-5) call abort
+ end
+2005-01-07 Bud Davis <bdavis9659@comcast.net>
+
+ PR fortran/18398
+ * transfer.c (next_record_r): always skip the
+ eol search if it was found during sf_read.
+
2004-12-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* libgfortran/libgfortran.h (GFC_UINTEGER_1, GFC_UINTEGER_2):
case FORMATTED_SEQUENTIAL:
length = 1;
- if (sf_seen_eor && done)
+ /* sf_read has already terminated input because of an '\n' */
+ if (sf_seen_eor)
break;
do