re PR fortran/88249 (ICE in gfc_resolve_filepos, at fortran/io.c:2853)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 11 Dec 2018 23:13:19 +0000 (23:13 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 11 Dec 2018 23:13:19 +0000 (23:13 +0000)
commit3d07fb21d2aaf83548efc4f7ca42fc9deb4028b6
tree9d1f2cbf8af8c12e601d7acd76e402e6e4c9d88b
parent3b31a906085899ffea090ef9945ffda785dcad78
re PR fortran/88249 (ICE in gfc_resolve_filepos, at fortran/io.c:2853)

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.

From-SVN: r267035
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/io.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr88249.f90 [new file with mode: 0644]