------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-01-24 05:05 ------- I have confirmed Dale's discovery here which gave me the hint I needed. The following patch fixes all the cases presented in comments above, passes regression testing and passes NIST testing. No need for patch in unix.c.
Index: io/transfer.c =================================================================== *** io/transfer.c (revision 109870) --- io/transfer.c (working copy) *************** export_proto(st_read_done); *** 2173,2178 **** --- 2173,2179 ---- void st_read_done (st_parameter_dt *dtp) { + flush(dtp->u.p.current_unit->s); finalize_transfer (dtp); free_format_data (dtp); free_ionml (dtp); Dale, please give this a spin if you can. And thanks doubly for your help! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25835