http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50564
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-30 09:11:38 UTC --- (In reply to comment #2) > I'll have a look in the next few days. One way could be to move the "EXPR_ASSIGN:" part of trans-stmt.c's gfc_trans_forall_1 into a separate function and add a "EXPR_BLOCK:" which loops over all c->block->next, calling that new function (with an gcc_assert that it only contains EXPR_ASSIGN); it probably deserves also a comment that the BLOCK is generated by the FE optimization.