[Bug libfortran/59513] [4.8/4.9/4.10 Regression] Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 16 01:45:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59513

--- Comment #24 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Manfred Schwarb from comment #22)
--- snip ---

> Jerry, concerning your cited standard:
> "If the file contains an endfile record" suggests that there is some
> special marker in the file to be read/written.
> In this example, we are doing some formatted IO to a plain text file,
> there are no special markers.
> Do I miss something?
> 
> What does/should ftell() report in such a case? That we are one
> character beyond EOF?

I think Dominique has answered as far as the physical aspect.

FTELL just returns the current physical location.



More information about the Gcc-bugs mailing list