[Patch, fortran] PR47071 - [4.6 Regression] Wrong reallocate
Tobias Burnus
burnus@net-b.de
Mon Jan 10 10:42:00 GMT 2011
On 01/10/2011 06:38 AM, Paul Richard Thomas wrote:
> Note that we still have to deal with changing length parameters; eg.
> character length or dynamic type. Realistically, I think that this
> will come in 4.7 but I will see what I can do:-)
(I personally would prefer to see first the implementation of reallocate
on assignment for scalars.)
> Bootstraps and regtests on FC9/x86_64 - OK for trunk?
OK. Thanks for the patch!
Tobias
PS: As there is a quote, it is not really needed - but in general I
prefer if references to the standard (constraint numbers or section
numbers) also include the Fortran standard (F95, F(20)03, F(20)08).
> 2011-01-10 Paul Thomas<pault@gcc.gnu.org>
>
> PR fortran/47051
> * trans-array.c (gfc_alloc_allocatable_for_assignment): Change
> to be standard compliant by testing for shape rather than size
> before skipping reallocation. Improve comments.
>
> 2011-01-10 Paul Thomas<pault@gcc.gnu.org>
>
> PR fortran/47051
> * gfortran.dg/realloc_on_assign_2.f03 : Modify 'test1' to be
> standard compliant and comment.
More information about the Gcc-patches
mailing list