[Patch, fortran] PR32880 - User operator & allocatable TYPE components: wrong deallocate
Paul Thomas
paulthomas2@wanadoo.fr
Fri Jul 27 17:31:00 GMT 2007
:ADDPATCH fortran:
This fix for pr32880 is blessedly simple and self-explanatory. We now
have a clean sweep on the iso_varying_string testsuite:)
Thanks to Tobias for pointing out where the problem was.
Regtested on Cygwin_NT/amd64 - OK for trunk?
I'll add a testcase - I was in such a burning hurry to communicate this
that I couldn't wait!
2007-07-27 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32880.diff
Type: text/x-patch
Size: 1713 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070727/be06116f/attachment.bin>
More information about the Fortran
mailing list