re PR fortran/78641 ([OOP] ICE on polymorphic allocatable function in array constructor)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 5 Nov 2017 14:32:05 +0000 (14:32 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 5 Nov 2017 14:32:05 +0000 (14:32 +0000)
commit5233d45559d5869fe7dc9705d6c79e6538d8a2ab
tree4312d6964f57222d5150f716ba8439e6ef4da776
parentaea5e9327a49bc73878a547d490bb32ac31df03e
re PR fortran/78641 ([OOP] ICE on polymorphic allocatable function in array constructor)

2017-11-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78641
* resolve.c (resolve_ordinary_assign): Do not add the _data
component for class valued array constructors being assigned
to derived type arrays.
* trans-array.c (gfc_trans_array_ctor_element): Take the _data
of class valued elements for assignment to derived type arrays.

2017-11-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78641
* gfortran.dg/class_66.f90: New test.

From-SVN: r254428
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_66.f90 [new file with mode: 0644]