r226037 - in /branches/gcc-5-branch/gcc: fortra...

vehre@gcc.gnu.org vehre@gcc.gnu.org
Tue Jul 21 10:36:00 GMT 2015


Author: vehre
Date: Tue Jul 21 10:36:06 2015
New Revision: 226037

URL: https://gcc.gnu.org/viewcvs?rev=226037&root=gcc&view=rev
Log:
gcc/fortran/ChangeLog:

2015-07-21  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-21  Andre Vehreschild  <vehre@gcc.gnu.org>

	PR fortran/66035
	* gfortran.dg/structure_constructor_13.f03: New test.



Added:
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/structure_constructor_13.f03
Modified:
    branches/gcc-5-branch/gcc/fortran/ChangeLog
    branches/gcc-5-branch/gcc/fortran/trans-expr.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list