[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
Mon Nov 6 10:40:00 GMT 2017


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

--- Comment #8 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Mon Nov  6 10:40:11 2017
New Revision: 254444

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


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


More information about the Gcc-bugs mailing list