This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR57354 - Wrong run-time assignment of allocatable array of derived type with allocatable component
- From: Tobias Burnus <burnus at net-b dot de>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 01 Dec 2013 12:09:34 +0100
- Subject: Re: [Patch, fortran] PR57354 - Wrong run-time assignment of allocatable array of derived type with allocatable component
- Authentication-results: sourceware.org; auth=none
- References: <CAGkQGiLoet4=J-FgpkfiEMGVoCDFWbs7jjwDOp2kXPuu7ZCHfg at mail dot gmail dot com>
Paul Richard Thomas wrote:
This is a partial fix for this problem
Well, it is a full fix for the wrong-code issue, even if a
missed-optimization issue remains ;-)
I will retain the PR and will have another go at suppressing
the reallocation in a few weeks time.
Thanks!
Bootstrapped and regtested on Fc17/x86_64 - OK for trunk?
OK and thanks for going through the PRs and fixing them!
Tobias
2013-11-30 Paul Thomas <pault@gcc.gnu.org>
PR fortran/57354
* trans-array.c (gfc_conv_resolve_dependencies): For other than
SS_SECTION, do a dependency check if the lhs is liable to be
reallocated.
2013-11-30 Paul Thomas <pault@gcc.gnu.org>
PR fortran/57354
* gfortran.dg/realloc_on_assign_23.f90 : New test