http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52012

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Wrong-code with realloc on  |[4.6/4.7 Regression]
                   |assignment and RESHAPE w/   |Wrong-code with realloc on
                   |ORDER=                      |assignment and RESHAPE w/
                   |                            |ORDER=

--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-31 
14:05:38 UTC ---
(In reply to comment #9)
> No longer a regression however.

Well, first, you didn't commit the patch to the 4.6 branch.

Secondly, I believe the following program still prints a different result with
GCC 4.1 to 4.5 than with 4.6 and 4.7, unless -fno-realloc-lhs is used:


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

Reply via email to