https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87284

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Thu Sep 13 19:46:05 2018
New Revision: 264288

URL: https://gcc.gnu.org/viewcvs?rev=264288&root=gcc&view=rev
Log:
2018-09-13  Paul Thomas  <pa...@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-13  Paul Thomas  <pa...@gcc.gnu.org>

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


Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/allocate_with_mold_2.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/trans-expr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to