[Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=

Tobias Burnus burnus@net-b.de
Thu Feb 2 20:27:00 GMT 2012


Dear Paul,

Paul Richard Thomas wrote:
> Following our exchanges with Dominique, I think that the attached
> patch will have to do for now.
> Bootstrapped and regtested on FC9/x86_64 - OK for trunk?

The patch looks fine. Thanks. Can you also back-port to 4.6?

Tobias

> 2012-02-02  Paul Thomas<pault@gcc.gnu.org>
>
> 	PR fortran/52012
> 	* trans-expr.c (fcncall_realloc_result): If variable shape is
> 	correct, retain the bounds, whatever they are.
>
> 2012-02-02  Paul Thomas<pault@gcc.gnu.org>
>
> 	PR fortran/52012
> 	* gfortran.dg/realloc_on_assign_11.f90: New test.



More information about the Fortran mailing list