Fortran: Reject DT as fmt in I/O statments [PR99111]
authorTobias Burnus <tobias@codesourcery.com>
Tue, 16 Feb 2021 13:17:35 +0000 (14:17 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 16 Feb 2021 13:17:35 +0000 (14:17 +0100)
commitebf9b6c13f0847ddcc22e540a5fcdbf644e85a9c
tree06b58649d06f9511a250566d74e8777425b8d241
parent3f16a1678156035bbe73b217fbce4d9c27d1d559
Fortran: Reject DT as fmt in I/O statments [PR99111]

gcc/fortran/ChangeLog:

PR fortran/99111
* io.c (resolve_tag_format): Reject BT_DERIVED/CLASS/VOID
as (array-valued) FORMAT tag.

gcc/testsuite/ChangeLog:

PR fortran/99111
* gfortran.dg/fmt_nonchar_1.f90: New test.
* gfortran.dg/fmt_nonchar_2.f90: New test.
gcc/fortran/io.c
gcc/testsuite/gfortran.dg/fmt_nonchar_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/fmt_nonchar_2.f90 [new file with mode: 0644]