]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR fortran/78641 ([OOP] ICE on polymorphic allocatable function in array...
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 6 Nov 2017 11:50:53 +0000 (11:50 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 6 Nov 2017 11:50:53 +0000 (11:50 +0000)
commitc079880e339f140d33e95264c1fef6d18cafb68a
treee539035b6e92b47e6c53b1ea219da9ae4ea91d17
parent566fe453f5a044875b4868083b6148a2382bcd03
backport: re PR fortran/78641 ([OOP] ICE on polymorphic allocatable function in array constructor)

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

Backported from trunk
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-06  Paul Thomas  <pault@gcc.gnu.org>

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

From-SVN: r254449
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]