On 03/31/2011 01:28 PM, Thomas Koenig wrote:
Hello world,

the attached patch fixes a 4.7 regression, PR 48352, where a function
elimination in the expressions for a DO loop caused an ICE. The ICE was caused
by interaction of the expression walker with insertion of a statement for a DO
loop.

Many thanks to Joost for finding the bug and reducing the test case.

To fix the regression, I have disabled this particular optimization for
expressions within the loop control.

I'd like to overhaul the way that statements are inserted during front end
optimization, later. This is needed for functions returning arrays with bounds
not known at compile-time anyway.

Regression-tested. OK for trunk?

OK.  Do you plan to open a second PR for this TODO?

Thanks for patch,

Jerry

Reply via email to