This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78659] [F03] Spurious "requires DTIO" reported against namelist statement
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 May 2017 18:10:20 +0000
- Subject: [Bug fortran/78659] [F03] Spurious "requires DTIO" reported against namelist statement
- Auto-submitted: auto-generated
- References: <bug-78659-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78659
--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Wed May 17 18:09:48 2017
New Revision: 248166
URL: https://gcc.gnu.org/viewcvs?rev=248166&root=gcc&view=rev
Log:
2017-05-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from trunk
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.
Added:
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/namelist_91.f90
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/namelist_92.f90
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/namelist_93.f90
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/namelist_94.f90
Modified:
branches/gcc-7-branch/gcc/fortran/ChangeLog
branches/gcc-7-branch/gcc/fortran/io.c
branches/gcc-7-branch/gcc/fortran/resolve.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog