This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR67721 deep copy missing when assigning derived type constructor to an array
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Mikael Morin <mikael dot morin at sfr dot fr>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 2 Oct 2015 09:33:33 -0700
- Subject: Re: [Patch, fortran] PR67721 deep copy missing when assigning derived type constructor to an array
- Authentication-results: sourceware.org; auth=none
- References: <56069950 dot 8080203 at sfr dot fr>
On Sat, Sep 26, 2015 at 6:10 AM, Mikael Morin <mikael.morin@sfr.fr> wrote:
> Hello,
>
> I've just submitted this PR, and the patch as well, which passes the
> testsuite.
>
> The problem is a missing deep copy when the rhs is a (scalar) derived type
> constructor (with allocatable components) and the lhs an array.
> The patch removes the nonconstantness condition, so that the deep_copy flag
> passed to gfc_trans_scalar_assign is set to true.
>
> Regression-tested on x86_64-unknown-linux-gnu. OK for trunk?
> Mikael
>
This caused:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67818
on GCC 5 branch.
--
H.J.