re PR fortran/32880 (User operator & allocatable TYPE components: wrong deallocate)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 28 Jul 2007 05:29:06 +0000 (05:29 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 28 Jul 2007 05:29:06 +0000 (05:29 +0000)
commitb8247b13893d56a6dc3bc0ae77761b3e826aeac5
treedfdc730eb913c4d4badc7744a62fc9b1ab0f8521
parent9587952bbfbcd6b8c25e21da630802c4cffef712
re PR fortran/32880 (User operator & allocatable TYPE components: wrong deallocate)

2007-07-28  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32880
* trans-expr.c (gfc_trans_scalar_assign): Revert to fixed order
for lse and rse pre expressions, for derived types with
allocatable components.  Instead, assign the lhs to a temporary
and deallocate after the assignment.

2007-07-28  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32880
* gfortran.dg/alloc_comp_assign_6.f90: New test.

From-SVN: r127011
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_assign_6.f90 [new file with mode: 0644]