[Bug libfortran/20661] End of record not detected
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 28 17:48:00 GMT 2005
------- Additional Comments From tobi at gcc dot gnu dot org 2005-03-28 17:48 -------
To clarify this:
! End of record is not detected
! on second READ
! iostats should be 0, 0, -2, -1
The standard says:
"Execution of an input/output statement containing the IOSTAT= specifier causes
the variable specified in the IOSTAT= specifier to become defined
(1) With a zero value if neither an error condition, and end-of-file condition,
nor an end-of-record condition occurs,
(2) With a processor-dependent positive integer value if an error condition occurs,
(3) With a processor-dependent negative integer value if an end-of-ile condition
occurs and no error condition occurs, or
(4) With a processor-dependent negative integer value different from the
end-of-file value if and end-of-record condition occurs and no error condition
or end-of-file condition occurs.
Current output from gfortran:
iostat 0
iostat 0 x
iostat 0
iostat -1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20661
More information about the Gcc-bugs
mailing list