https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88269
--- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Mon Dec 10 20:03:32 2018 New Revision: 266962 URL: https://gcc.gnu.org/viewcvs?rev=266962&root=gcc&view=rev Log: 2018-12-10 Steven G. Kargl <ka...@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 <ka...@gcc.gnu.org> PR fortran/88269 * gfortran.dg/pr88269.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr88269.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/io.c branches/gcc-7-branch/gcc/testsuite/ChangeLog