This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/78659] [F03] Spurious "requires DTIO" reported against namelist statement


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]