------- Comment #6 from jb at gcc dot gnu dot org 2009-07-15 21:42 ------- Ok, so the problem is that due to the EOF the first read hits, the current_record marker is not properly reset to 0 at the end of the data transfer, and from that it follows that stuff isn't correctly initialized at the next I/O statement.
Trying to figure out where to properly place the reset. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40714