This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34594] On error and END, no jump to ERR=<label>
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2007 15:48:02 -0000
- Subject: [Bug fortran/34594] On error and END, no jump to ERR=<label>
- References: <bug-34594-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tkoenig at gcc dot gnu dot org 2007-12-26 15:48 -------
Hmm... I'm having second thoughts about this. We
are reading with DIRECT access on unit 11 without
ever having opened, this makes no sense (because
we never specified a record length). If I change
iou on the test program to be 11, the program behaves
as expected.
We do actually call generate_error twice, once with the
error, the second time about the END.
An error should take precedence in this case.
This is really a diagnostics issue. Tobias, if I missed
anything, please correct me :-)
Thomas
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu dot
| |org
Severity|normal |enhancement
Keywords|wrong-code |diagnostic
Summary|On error, no jump to |On error and END, no jump to
|ERR=<label> |ERR=<label>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34594