Commit 6a10835a by Jerry DeLisle

re PR fortran/43517 (spurious end-of-file condition when namelist read follows formatted read)

2010-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43517
	* io/read.c (read_x): Return if seen EOR condition.

From-SVN: r157737
parent 5dc22714
2010-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/43517
* io/read.c (read_x): Return if seen EOR condition.
2010-03-21 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2010-03-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/43409 PR fortran/43409
......
...@@ -1046,6 +1046,9 @@ read_x (st_parameter_dt *dtp, int n) ...@@ -1046,6 +1046,9 @@ read_x (st_parameter_dt *dtp, int n)
goto done; goto done;
} }
if (dtp->u.p.sf_seen_eor)
return;
p = fbuf_read (dtp->u.p.current_unit, &length); p = fbuf_read (dtp->u.p.current_unit, &length);
if (p == NULL) if (p == NULL)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment