[Bug fortran/32880] User operator & allocatable TYPE components: wrong deallocate
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 28 05:29:00 GMT 2007
------- Comment #5 from pault at gcc dot gnu dot org 2007-07-28 05:29 -------
Subject: Bug 32880
Author: pault
Date: Sat Jul 28 05:29:06 2007
New Revision: 127011
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127011
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/alloc_comp_assign_6.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32880
More information about the Gcc-bugs
mailing list