[Bug libfortran/26499] gfortran - End of File incorrectly positioned after binary I/O.

jvdelisle at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 1 07:19:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list