re PR fortran/83057 (OPEN without a filename and without STATUS='SCRATCH' could produ...
authorHarald Anlauf <anlauf@gmx.de>
Fri, 22 Feb 2019 20:35:38 +0000 (20:35 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Fri, 22 Feb 2019 20:35:38 +0000 (20:35 +0000)
commit56bf85c1a747ae517abb861dddaf64c4927e8139
tree402881984d32b47a6ad1deb73201a5fc1d63f5ca
parentf3e1797acfe601c6ddd047d1afebe1af69426ae1
re PR fortran/83057 (OPEN without a filename and without STATUS='SCRATCH' could produce a warning)

2019-02-22  Harald Anlauf  <anlauf@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.

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