From cc6a430fb2273dd9ce5d096791455ec31056554f Mon Sep 17 00:00:00 2001 From: Paul Thomas Date: Thu, 5 Feb 2015 08:06:04 +0000 Subject: [PATCH] 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 --- gcc/fortran/ChangeLog | 2 +- gcc/testsuite/ChangeLog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2