diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2015-02-05 08:06:04 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2015-02-05 08:06:04 +0000 |
commit | cc6a430fb2273dd9ce5d096791455ec31056554f (patch) | |
tree | 9380a2c4ec9b309f9a998e666b4059dc7484d6fc /gcc | |
parent | 3cd52c11b284c1123b1782dc5629d22a42844c37 (diff) | |
download | gcc-cc6a430fb2273dd9ce5d096791455ec31056554f.zip gcc-cc6a430fb2273dd9ce5d096791455ec31056554f.tar.gz gcc-cc6a430fb2273dd9ce5d096791455ec31056554f.tar.bz2 |
re PR fortran/64757 (ICE in fold_convert_loc, at fold-const.c:2353)
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index a60737f..def6f1b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ca16b4..a8d7d6a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 |