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

2013-12-01 Thread Tobias Burnus
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

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

2013-11-30 Thread Paul Richard Thomas
Dear All, This is a partial fix for this problem in that it generates a temporary to provide a correct assignment but then goes on to do an unnecessary reallocation of the lhs. That is to say, the temporary could be taken over by the array descriptor. At the moment, I could not see a good way