2007-07-17 Paul Thomas <pault@gcc.gnu.org>
commit6826be54ee25b42208d819d1bb35397d5c43003b
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2007 17:22:44 +0000 (17 17:22 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2007 17:22:44 +0000 (17 17:22 +0000)
tree68ba4b18261ead6f352d9cbbba151c1b0052fd4e
parent1ee4708594d9bb1c3ed5700c3189699dc02e53d6
2007-07-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31320
PR fortran/32665
* trans-expr.c (gfc_trans_subcomponent_assign): Ensure that
renormalization unity base is done independently of existing
lbound value.
(gfc_trans_scalar_assign): If rhs is not a variable, put
lse->pre after rse->pre to ensure that de-allocation of lhs
occurs after evaluation of rhs.

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

PR fortran/31320
PR fortran/32665
* gfortran.dg/alloc_comp_constructor_3.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126703 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_constructor_3.f90 [new file with mode: 0644]