re PR fortran/89782 (Can do an internal READ of a character array when it is a parame...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 22 Jun 2019 19:58:47 +0000 (19:58 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 22 Jun 2019 19:58:47 +0000 (19:58 +0000)
commitb1be0054be0149ad735e662912e01ebd258cea49
treece4faece62008dcdeb8ded3738ea6ae5fa589eb3
parentd9fe6cc4251d68866779f3e8d86af1a050fa2ae5
re PR fortran/89782 (Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter)

2019-06-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/89782
* io.c (gfc_resolve_dt): Check that internal units are not
character PARAMETER.

* gfortran.dg/io_constraints.f90: New test.

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