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: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2006 07:19:38 -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 #2 from jvdelisle at gcc dot gnu dot org 2006-03-01 07:19 -------
Take a closer look at this folks. The program should jump to line 250 on the
fourth READ. If you change the test line to: if(iat.ne.eof+1)then you will see
that gfortran is correctly jumping out on the fourth READ. On the third READ
you have not hit the end-of-file yet, just almost.
Trying this slightly improved test case with ifort gives a segfault at run
time.
Can I get a second opinion on this? I think this is a NOT-A-BUG.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26499