This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: tobias dot burnus at physik dot fu-berlin dot de, paul dot richard dot thomas at gmail dot com
- Date: Wed, 01 Feb 2012 00:09:18 +0100
- Subject: Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=
Dear Paul,
> I believe that the attached does the right thing. Note that
> realloc_on_assign_7.f03 checks for the wrong bounds in subroutine
> pr48746.
I have done little testing with your patch, but it seems that
the lbound is off by one (0 instead of 1) when doing a reallocation.
Cheers,
Dominique