re PR fortran/88269 (ICE in gfc_format_decoder, at fortran/error.c:947)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 10 Dec 2018 18:05:37 +0000 (18:05 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 10 Dec 2018 18:05:37 +0000 (18:05 +0000)
commita84162511d4712374a9ae76edae32a5068fcfc0d
tree034a8398ee5599c374c104325d351c6f3459eb58
parent98900a06642a7c10751720a26f8cbca359d89fa3
re PR fortran/88269 (ICE in gfc_format_decoder, at fortran/error.c:947)

2018-12-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/88269
* io.c (io_constraint): Update macro. If locus line buffer is NULL,
use gfc_current_locus in error messages.
(check_io_constraints): Catch missing IO UNIT in write and read
statements.  io_constraint macro is incompatible here.

2018-12-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/88269
* gfortran.dg/pr88269.f90: New test.

From-SVN: r266959
gcc/fortran/ChangeLog
gcc/fortran/io.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr88269.f90 [new file with mode: 0644]