From: Paul Thomas Date: Thu, 5 Feb 2015 08:06:04 +0000 (+0000) Subject: re PR fortran/64757 (ICE in fold_convert_loc, at fold-const.c:2353) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc6a430fb2273dd9ce5d096791455ec31056554f;p=gcc.git re PR fortran/64757 (ICE in fold_convert_loc, at fold-const.c:2353) 2015-02-05 Paul Thomas 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 PR fortran/64757 * gfortran.dg/type_to_class_2.f90: New test * gfortran.dg/type_to_class_3.f90: New test From-SVN: r220436 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index a60737f2fff..def6f1b2f2f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,6 +1,6 @@ 2015-02-05 Paul Thomas - 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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ca16b4873f..a8d7d6a9f20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,6 @@ 2015-02-05 Paul Thomas - PR fortran/640757 + PR fortran/64757 * gfortran.dg/type_to_class_2.f90: New test * gfortran.dg/type_to_class_3.f90: New test