class_assign_1.f08: New test.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 23 Dec 2016 10:26:47 +0000 (11:26 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 23 Dec 2016 10:26:47 +0000 (11:26 +0100)
commitf19dd7b634dd0bfde776dd94db71e96fac162984
treed21bd72ca8eb170488bc606c6e10af7247000657
parentcca8d0b26549b5f3813178443a3a600aef104181
class_assign_1.f08: New test.

gcc/testsuite/ChangeLog:

2016-12-23  Andre Vehreschild  <vehre@gcc.gnu.org>

* gfortran.dg/class_assign_1.f08: New test.

gcc/fortran/ChangeLog:

2016-12-23  Andre Vehreschild  <vehre@gcc.gnu.org>

* trans-expr.c (trans_class_assignment): Allocate memory of _vptr->size
        before assigning an allocatable class object.
(gfc_trans_assignment_1): Flag that (re-)alloc of the class object
shall be done.

From-SVN: r243909
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_assign_1.f08 [new file with mode: 0644]