re PR fortran/82511 (ICE Bad IO basetype (12) on attempted read or write of entire...
authorFritz Reese <fritzoreese@gmail.com>
Mon, 16 Oct 2017 17:40:53 +0000 (17:40 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Mon, 16 Oct 2017 17:40:53 +0000 (17:40 +0000)
commit9b460e2e50613e70e0e669cd813536c7288d58ea
tree6be4ba6e37339e88677543fcbfc46fd43ff7ae39
parent01118373fe07a1329bb33d00c286f59c6e7f15b1
re PR fortran/82511 (ICE Bad IO basetype (12) on attempted read or write of entire DEC structure)

2017-10-16  Fritz Reese <fritzoreese@gmail.com>

    PR fortran/82511
    Treat UNION components as DT comp. in I/O lists.

    gcc/fortran/ChangeLog:

PR fortran/82511
* trans-io.c (transfer_expr): Treat BT_UNION as BT_DERIVED.

    gcc/testsuite/ChangeLog:

PR fortran/82511
* gfortran.dg/dec_structure_22.f90: New testcase.

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