aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/ChangeLog
diff options
context:
space:
mode:
authorAndre Vehreschild <vehre@gcc.gnu.org>2015-07-17 12:16:21 +0200
committerAndre Vehreschild <vehre@gcc.gnu.org>2015-07-17 12:16:21 +0200
commit255388b8123b714d4bd91c6745dd811f9b4290fb (patch)
tree49a9263a209920a6310307f5dd0042055857250c /gcc/fortran/ChangeLog
parent0e1f8c6a90834987f63f911a86d78e40d5577e80 (diff)
downloadgcc-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/ChangeLog12
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>