[Committed] PR fortran/88249 -- Check for UNIT in file positioning
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Dec 12 00:56:00 GMT 2018
I've committed the attached patch. It does two things.
(1) It adds checking for a UNIT number when a file positioning
statement contains ERR=. (2) It passes a locus so that a
sensible error message is printed,
2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88249
* gfortran.h: Update prototype for gfc_resolve_filepos().
* io.c (gfc_resolve_filepos): Check for UNIT number if ERR= is present.
Use passed in locus for error message.
* resolve.c (gfc_resolve_code): Pass locus in gfc_resolve_filepos()
call.
2018-12-11 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/88249
* gfortran.dg/pr88249.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr88249.diff
Type: text/x-diff
Size: 2568 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20181212/02d866dd/attachment.bin>
More information about the Fortran
mailing list