This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/25340] Runtime error: "Read past ENDFILE record"
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2005 10:52:11 -0000
- Subject: [Bug libfortran/25340] Runtime error: "Read past ENDFILE record"
- References: <bug-25340-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2005-12-11 10:52 -------
So, following Steven's question on c.l.f, this code is illegal.
Most compilers report an EOF error (including Intel and g77), and branch if an
END tag is present. I think the error issued by gfortran currently is better
("Read past ENDFILE record"), ie more precise.
If people provide an END tag in the I/O statement, what do we want to do? I am
in favour of throwing an error, and not branching silently. I know (from c.l.f)
Brook thinks the same. I think we can close this as INVALID if you agree,
Steven.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25340