re PR libfortran/40334 (changed BACKSPACE behaviour at end of file.)
2009-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/40334 * io/list_read.c (list_formatted_read_scalar): Set the end file conditions after a return from EOF error. From-SVN: r148251
This commit is contained in:
parent
c430a6f9f8
commit
690aefeba4
@ -1,3 +1,9 @@
|
||||
2009-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libfortran/40334
|
||||
* io/list_read.c (list_formatted_read_scalar): Set the end file
|
||||
conditions after a return from EOF error.
|
||||
|
||||
2009-06-04 Janne Blomqvist <jb@gcc.gnu.org>
|
||||
|
||||
PR libfortran/40330
|
||||
|
@ -1687,6 +1687,11 @@ list_formatted_read_scalar (st_parameter_dt *dtp, volatile bt type, void *p,
|
||||
if (setjmp (eof_jump))
|
||||
{
|
||||
generate_error (&dtp->common, LIBERROR_END, NULL);
|
||||
if (!is_internal_unit (dtp))
|
||||
{
|
||||
dtp->u.p.current_unit->endfile = AFTER_ENDFILE;
|
||||
dtp->u.p.current_unit->current_record = 0;
|
||||
}
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user