[PATCH] fortran/66040 -- convert internal error into normal error
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri May 15 14:58:00 GMT 2015
The attached patch has been regression tested on
trunk. OK to commit?
As shown by the testcase, each individual line of code
is legal, but the ordering is incorrect. This leads to
an ICE, which can be correctly reported as a user error.
2015-05-XX Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66040
* parse.c(verify_st_order): Replace a gfc_internal_error with your
generic gfc_error.
2015-05-XX Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66040
* gfortran.dg/misplaced_statement.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr66040.diff
Type: text/x-diff
Size: 1334 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150515/10c0ed80/attachment.bin>
More information about the Fortran
mailing list