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

Reply via email to