This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]