diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-26 03:23:34 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-26 03:23:34 +0000 |
commit | 756058a97d0c48750d86f9286145e6fe26b1af0f (patch) | |
tree | 9c85157c36a8ce6432af0d680f0cf9c2d2fe74e5 /libgfortran/io | |
parent | 84f30fd1121faf45a5321769c9998699e15ce17a (diff) | |
download | gcc-756058a97d0c48750d86f9286145e6fe26b1af0f.tar.gz |
2010-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43517
* io/read.c (read_x): Return if seen EOR condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157737 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c index 078c6e25fc8..cc906b97693 100644 --- a/libgfortran/io/read.c +++ b/libgfortran/io/read.c @@ -1046,6 +1046,9 @@ read_x (st_parameter_dt *dtp, int n) goto done; } + if (dtp->u.p.sf_seen_eor) + return; + p = fbuf_read (dtp->u.p.current_unit, &length); if (p == NULL) { |