re PR fortran/66679 ([OOP] ICE with class(*) and transfer)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 12 Aug 2018 17:19:09 +0000 (17:19 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 12 Aug 2018 17:19:09 +0000 (17:19 +0000)
commit9a8013d11244cb26747d939c69589eba392ad7e2
tree4247e547f1412895bb682e501c5d1daa41903f61
parent5b774d92b054cce62313be4278932fadf7dd6454
re PR fortran/66679 ([OOP] ICE with class(*) and transfer)

2018-08-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/66679
* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Class array
elements are returned as references to the data element. Get
the class expression by stripping back the references. Use this
for the element size.

2018-08-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/66679
* gfortran.dg/transfer_class_3.f90: New test.

From-SVN: r263499
gcc/fortran/ChangeLog
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/transfer_class_3.f90 [new file with mode: 0644]