[PATCH][RFC] Fix PR49957 - build array index differently

Richard Guenther rguenther@suse.de
Thu Aug 4 09:22:00 GMT 2011


On Wed, 3 Aug 2011, Mikael Morin wrote:

> 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).

Ah, thanks.  I'll work from there to revise the patch.

Richard.



More information about the Fortran mailing list