[Patch, fortran] PR57354 - Wrong run-time assignment of allocatable array of derived type with allocatable component

Tobias Burnus burnus@net-b.de
Sun Dec 1 11:09:00 GMT 2013


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



More information about the Fortran mailing list