This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/26499] gfortran - End of File incorrectly positioned after binary I/O.
- From: "dir at lanl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2006 13:50:17 -0000
- Subject: [Bug libfortran/26499] gfortran - End of File incorrectly positioned after binary I/O.
- References: <bug-26499-10129@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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