diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2015-07-17 12:16:21 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2015-07-17 12:16:21 +0200 |
commit | 255388b8123b714d4bd91c6745dd811f9b4290fb (patch) | |
tree | 49a9263a209920a6310307f5dd0042055857250c /gcc/fortran/ChangeLog | |
parent | 0e1f8c6a90834987f63f911a86d78e40d5577e80 (diff) | |
download | gcc-255388b8123b714d4bd91c6745dd811f9b4290fb.zip gcc-255388b8123b714d4bd91c6745dd811f9b4290fb.tar.gz gcc-255388b8123b714d4bd91c6745dd811f9b4290fb.tar.bz2 |
re PR fortran/66035 (gfortran ICE segfault)
gcc/fortran/ChangeLog:
2015-07-17 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/66035
* trans-expr.c (alloc_scalar_allocatable_for_subcomponent_assignment):
Compute the size to allocate for class and derived type objects
correclty.
(gfc_trans_subcomponent_assign): Only allocate memory for a
component when the object to assign is not an allocatable class
object (the memory is already present for allocatable class objects).
Furthermore use copy_class_to_class for assigning the rhs to the
component (may happen for dummy class objects on the rhs).
gcc/testsuite/ChangeLog:
2015-07-17 Andre Vehreschild <vehre@gcc.gnu.org>
PR fortran/66035
* gfortran.dg/structure_constructor_13.f03: New test.
From-SVN: r225928
Diffstat (limited to 'gcc/fortran/ChangeLog')
-rw-r--r-- | gcc/fortran/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index af81bd5..33b8cbb 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,15 @@ +2015-07-17 Andre Vehreschild <vehre@gcc.gnu.org> + + PR fortran/66035 + * trans-expr.c (alloc_scalar_allocatable_for_subcomponent_assignment): + Compute the size to allocate for class and derived type objects + correclty. + (gfc_trans_subcomponent_assign): Only allocate memory for a + component when the object to assign is not an allocatable class + object (the memory is already present for allocatable class objects). + Furthermore use copy_class_to_class for assigning the rhs to the + component (may happen for dummy class objects on the rhs). + 2015-07-17 Mikael Morin <mikael@gcc.gnu.org> Dominique d'Humieres <dominiq@lps.ens.fr> |