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