re PR fortran/84387 (Defined output does not work for a derived type that has no...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 23 Feb 2019 18:07:10 +0000 (18:07 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 23 Feb 2019 18:07:10 +0000 (18:07 +0000)
commit85627e2a9e9808c49da92b943a3c8e22106bf9aa
tree18d0a7d2159470566c6f45a2d80d1b695f4a4f0d
parent3aab3d374adf1b333661a6948c586c8d665a0807
re PR fortran/84387 (Defined output does not work for a derived type that has no components)

2019-02-23  Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/84387
* trans-io.c (transfer_expr): Do not return if there are no
components to the derived type or class.

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

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