aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorBud Davis <bdavis9659@comcast.net>2005-01-07 03:25:47 +0000
committerBud Davis <bdavis9659@comcast.net>2005-01-07 03:25:47 +0000
commit43792618573997e6faf33c423945d8813323e06e (patch)
tree86705ded928384a7e8d054f2cbb9f64ba3ca2eaf /libgfortran
parent77a2fdee206e636d00d6eb8399a9c4ec7690d7e5 (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@93035 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/transfer.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index f416be58eab..805cab133a3 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+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):
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index fb673042432..d55110ad30b 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -1209,7 +1209,8 @@ next_record_r (int done)
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