1 Feb 2012 06:53
Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=
Paul Richard Thomas <paul.richard.thomas <at> gmail.com>
2012-02-01 05:53:13 GMT
2012-02-01 05:53:13 GMT
Dear Tobias and Dominique, > As "tmp" is a local variable, it is unallocated until the assignment. Thus, > it should get as lower bound "lbound(rhs-expr)", which is [1,1]. But currently > it has result "[0, 0]". Indeed, I set it to [0,0] on the grounds that it is unallocated. I will check but I am rather sure that the library will return [0,0] for an unallocated result. > 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. See above - I am aware of that - thanks. I'll do some more on this at lunchtime. Cheers Paul
> + procedure :: gt_cmp => gt_cmp_int
With this change the ICE goes away even without the patch. Thus
I think it should not be included in the test.
Thanks for the patch,
Dominique
RSS Feed