re PR fortran/87284 (Allocation of class arrays with mold results in "conditional...
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 12 Sep 2018 18:33:13 +0000 (18:33 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 12 Sep 2018 18:33:13 +0000 (18:33 +0000)
commit3b582f1f3b7e19f050a219117e0d1af0e9a76af4
treec9348caadcc91e4c780f6e543070c5a33405dc15
parentc0cbe5260fab673f7cd755df2226422b88b28837
re PR fortran/87284 (Allocation of class arrays with mold results in "conditional jump or move depends on uninitialised value")

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.

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