This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Jan 2012 17:22:23 +0100
- Subject: Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=
- References: <20120131141726.GA656@physik.fu-berlin.de>
Dear Tobias,
> ?integer, allocatable :: a(:), b(:)
> ?allocate(b(3))
> ?b = [1,2,3]
>
> ?allocate (a(7:9))
> ?a = reshape( b, shape=[size(b)])
> ?print *, lbound(a), ubound(a) ! Expected: 7 9
> ?end
I tried briefly to generate such a case... I'll fix it.
Cheers
Paul