http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52860

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-04-05 
08:26:57 UTC ---
Close as INVALID.

>From Fortran 2008, "9.11.3 End-of-file condition and the END= specifier":

"If an end-of-file condition occurs during execution of an input/output
statement that contains either an END= specifier or an IOSTAT= specifier, and
an error condition does not occur then:
...
(4) if the file specified in the input statement is an external record file, it
is positioned after the endfile record;"

And: "9.3.4.3 File position prior to data transfer"

"If the file contains an endfile record, the file shall not be positioned after
the endfile record prior to data transfer. However, a REWIND or BACKSPACE
statement may be used to reposition the file."

(Side note: FORTRAN 77 has nearly same words.)

Reply via email to