[Bug fortran/78641] [6/7/8 Regression] [OOP] ICE on polymorphic allocatable function in array constructor

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 5 14:32:00 GMT 2017


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

--- Comment #7 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Nov  5 14:32:05 2017
New Revision: 254428

URL: https://gcc.gnu.org/viewcvs?rev=254428&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/class_66.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list