[Bug libfortran/26499] gfortran - End of File incorrectly positioned after binary I/O.
dir at lanl dot gov
gcc-bugzilla@gcc.gnu.org
Wed Mar 1 13:50:00 GMT 2006
------- Comment #3 from dir at lanl dot gov 2006-03-01 13:50 -------
Hi Jerry,
The program does
3 writes - eof after record 3 - write pointer after record 3
2 backspaces - eof after record 3 - write pointer after record 1
1 write - eof after record 2 - write pointer after record 2
The two backspaces backup over the last two writes and the forth write
adds one additional record for a total of 2 records of the file - there should
only be 2 records with the eof jump happening on the third read.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26499
More information about the Gcc-bugs
mailing list