[PATCH][RFC] Fix PR49957 - build array index differently
Mikael Morin
mikael.morin@sfr.fr
Wed Aug 3 21:13:00 GMT 2011
Hello,
On Wednesday 03 August 2011 15:47:37 Richard Guenther wrote:
> Comments? Any idea why reversing the loop would break?
Yes, the list of scalarized expressions has to be created in the same order it
is consumed. Here the scalarized expressions are array indexes to be
precomputed out of the loop.
The attached patch seems to work (the interesting part is in
gfc_walk_variable_expr).
Mikael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr49957.diff
Type: text/x-patch
Size: 2776 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110803/26faf020/attachment.bin>
More information about the Fortran
mailing list