re PR fortran/78659 ([F03] Spurious "requires DTIO" reported against namelist statement)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 11 May 2017 20:40:49 +0000 (20:40 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Thu, 11 May 2017 20:40:49 +0000 (20:40 +0000)
commit628c06d6bc47c3a1487ecd41eb12d13a968d4480
tree11ba4a43cb483cd064d84fb831bfb282e5a50823
parentfee84d551f8cc48c79d92a2af1ccfa2272bed215
re PR fortran/78659 ([F03] Spurious "requires DTIO" reported against namelist statement)

2017-05-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/78659
* io.c (dtio_procs_present): Add new function to check for DTIO
procedures relative to I/O statement READ or WRITE.
(gfc_resolve_dt): Add namelist checks using the new function.
* resolve.c (dtio_procs_present): Remove function and related
namelist checks. (resolve_fl_namelist): Add check specific to
Fortran 95 restriction on namelist objects.

* gfortran.dg/namelist_91.f90: New test.
* gfortran.dg/namelist_92.f90: New test.
* gfortran.dg/namelist_93.f90: New test.
* gfortran.dg/namelist_94.f90: New test.

From-SVN: r247930
gcc/fortran/ChangeLog
gcc/fortran/io.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/namelist_91.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/namelist_92.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/namelist_93.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/namelist_94.f90 [new file with mode: 0644]