diff options
author | Bud Davis <bdavis9659@comcast.net> | 2005-01-07 03:25:47 +0000 |
---|---|---|
committer | Bud Davis <bdavis@gcc.gnu.org> | 2005-01-07 03:25:47 +0000 |
commit | a7e8d7dbe7563a53d39958ce9721a3e623c7142d (patch) | |
tree | 86705ded928384a7e8d054f2cbb9f64ba3ca2eaf /libgfortran | |
parent | 9fb29c4634ac5ccb93fc59befd92135e5c0d108a (diff) | |
download | gcc-a7e8d7dbe7563a53d39958ce9721a3e623c7142d.zip gcc-a7e8d7dbe7563a53d39958ce9721a3e623c7142d.tar.gz gcc-a7e8d7dbe7563a53d39958ce9721a3e623c7142d.tar.bz2 |
re PR libfortran/18398 (Formatted I/O problems)
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
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/transfer.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index f416be5..805cab1 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 fb67304..d55110a 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 |