https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83057
--- Comment #6 from anlauf at gcc dot gnu.org --- Author: anlauf Date: Fri Feb 22 20:35:38 2019 New Revision: 269134 URL: https://gcc.gnu.org/viewcvs?rev=269134&root=gcc&view=rev Log: 2019-02-22 Harald Anlauf <anl...@gmx.de> PR fortran/83057 * io.c (gfc_match_open): Fix logic in checks of OPEN statement when NEWUNIT= is specified. PR fortran/83057 * gfortran.dg/newunit_6.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/newunit_6.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/io.c trunk/gcc/testsuite/ChangeLog