This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/19478] reading back from /dev/null
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2005 10:37:09 -0000
- Subject: [Bug libfortran/19478] reading back from /dev/null
- References: <20050117105240.19478.Thomas.Koenig@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-01-25 10:37 -------
I do not believe this to be a bug:
An end-of-file condition occurs when no more records exist in a file during a
sequential read, or when an end-of-file record produced by the ENDFILE statement
is encountered. End-of-file conditions do not occur in direct-access READ
statements.
For A editting If w is equal to or greater than the length (len) of the input
item, the rightmost characters are assigned to that item. The leftmost excess
characters are ignored.
Adding a second read to the test program, generates the EOF condition a nd it
is correctly trapped.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19478