https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88269
--- Comment #2 from kargl at gcc dot gnu.org --- Author: kargl Date: Mon Dec 10 18:05:37 2018 New Revision: 266959 URL: https://gcc.gnu.org/viewcvs?rev=266959&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: trunk/gcc/testsuite/gfortran.dg/pr88269.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/io.c trunk/gcc/testsuite/ChangeLog