On Fri, Mar 25, 2022 at 01:13:06PM +0100, Richard Biener wrote: > > Also, I think typically in the Fortran FE side-effects would go into > > se.pre and se.post sequences, not into se.expr, and this routine > > doesn't emit those se.pre/se.post sequences anywhere, so presumably it > > assumes they don't exist. > > > > What is the behavior with a RANGE_EXPR when one has { [0..10] = ++i; }, > > is that applying the side-effects 11 times or once ? > > 11 times is what is documented.
Then [0..-1] = ++i should be 0 times the side-effect. Jakub