------- Comment #9 from tkoenig at gcc dot gnu dot org 2006-12-03 18:56 ------- I've looked at the F 2003 standard, and at least there the wording is clear:
9.10: # An end-of-file condition occurs in the following cases: # # (1) When an endfile record is encountered during reading of a file # for sequential access. This is not the case here, when we try to read too many items from a record. # (2) When an attempt is made to read beyond the end of an internal file. # # (3) When an attempt is made to read beyond the end of a stream file. So we need an error condition here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30009