2018-09-12 Paul Thomas <pault@gcc.gnu.org>
commit0d9500245456e92c9a266f8c582a46474effc5d8
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2018 18:33:13 +0000 (12 18:33 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2018 18:33:13 +0000 (12 18:33 +0000)
treec9348caadcc91e4c780f6e543070c5a33405dc15
parent7c8e9b7da23c1080d036f014e429b4a8f96bbd8e
2018-09-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87284
* trans-expr.c (gfc_trans_class_init_assign): Access to
to array elements of the dynamic type requires that the array
reference be added to the class expression and not the _data
component, unlike scalar expressions.

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

PR fortran/87284
* gfortran.dg/allocate_with_mold_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264249 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_mold_2.f90 [new file with mode: 0644]