Message ID | bce3d29f-e35f-2a65-adac-16333c092a51@netcologne.de |
---|---|
State | New |
Headers | show |
Series | [libfortran] Fix EOF handling in array I/O | expand |
Am 23.11.19 um 14:15 schrieb Thomas Koenig:
> * gfortran.dg/eof_4.f90: New test.
This should be eof_6.f90 (and will be on commit).
Regards
Thomas
Index: io/transfer.c =================================================================== --- io/transfer.c (Revision 278025) +++ io/transfer.c (Arbeitskopie) @@ -2544,6 +2544,10 @@ transfer_array_inner (st_parameter_dt *dtp, gfc_ar while (data) { + if (unlikely (dtp->u.p.current_unit + && dtp->u.p.current_unit->endfile == AFTER_ENDFILE)) + return; + dtp->u.p.transfer (dtp, iotype, data, kind, size, tsize); data += stride0 * tsize; count[0] += tsize;