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