re PR fortran/64757 (ICE in fold_convert_loc, at fold-const.c:2353)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 5 Feb 2015 08:06:04 +0000 (08:06 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 5 Feb 2015 08:06:04 +0000 (08:06 +0000)
2015-02-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64757
* resolve.c (resolve_structure_cons): Obtain the rank of class
components.
* trans-expr.c (gfc_trans_alloc_subarray_assign): Do the
assignment to allocatable class array components.
(alloc_scalar_allocatable_for_subcomponent_assignment): If comp
is a class component, allocate to the _data field.
(gfc_trans_subcomponent_assign): If a class component with a
derived type expression set the _vptr field and for array
components, call gfc_trans_alloc_subarray_assign. For scalars,
the assignment is performed here.

2015-02-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64757
* gfortran.dg/type_to_class_2.f90: New test
* gfortran.dg/type_to_class_3.f90: New test

From-SVN: r220436

gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog

index a60737f2fff9aa9d8ff2cf81003c28d9a98bf493..def6f1b2f2fcb8db73ebb93185d64c06c3e16787 100644 (file)
@@ -1,6 +1,6 @@
 2015-02-05  Paul Thomas  <pault@gcc.gnu.org>
 
-       PR fortran/640757
+       PR fortran/64757
        * resolve.c (resolve_structure_cons): Obtain the rank of class
        components.
        * trans-expr.c (gfc_trans_alloc_subarray_assign): Do the
index 1ca16b4873fdd177f2cac235b1739503f9723db3..a8d7d6a9f20df538be013656605399614306247c 100644 (file)
@@ -1,6 +1,6 @@
 2015-02-05  Paul Thomas  <pault@gcc.gnu.org>
 
-       PR fortran/640757
+       PR fortran/64757
        * gfortran.dg/type_to_class_2.f90: New test
        * gfortran.dg/type_to_class_3.f90: New test