http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49885
--- Comment #7 from Daniel Kraft <domob at gcc dot gnu.org> 2011-08-02 17:55:38 UTC --- This seems to be fixed by changing gfc_start_block in trans-array.c:gfc_trans_auto_array_allocation to gfc_init_block. That's the way it already was in trans-decl.c:gfc_trans_auto_character_variable, which contains very similar code but did not create the "extra" scope. I'll regtest this patch and submit if it does not introduce other failures.