This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/19478] reading back from /dev/null


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]