This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32880] User operator & allocatable TYPE components: wrong deallocate



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]