This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49324] Deep copy missing for array constructors of DT w/ allocatable components
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Jun 2011 06:12:07 +0000
- Subject: [Bug fortran/49324] Deep copy missing for array constructors of DT w/ allocatable components
- Auto-submitted: auto-generated
- References: <bug-49324-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49324
--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-06-17 06:11:35 UTC ---
Author: burnus
Date: Fri Jun 17 06:11:31 2011
New Revision: 175137
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175137
Log:
2011-06-17 Tobias Burnus
PR fortran/49324
* trans-expr.c (gfc_trans_assignment_1): Tell
gfc_trans_scalar_assign to also deep-copy RHS nonvariables
with allocatable components.
* trans-array.c (gfc_conv_expr_descriptor): Ditto.
2011-06-17 Tobias Burnus
PR fortran/49324
* gfortran.dg/alloc_comp_assign_11.f90: New.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/alloc_comp_assign_11.f90
Modified:
branches/gcc-4_6-branch/gcc/fortran/ChangeLog
branches/gcc-4_6-branch/gcc/fortran/trans-array.c
branches/gcc-4_6-branch/gcc/fortran/trans-expr.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog