[Bug fortran/49885] [4.6/4.7 Regression] Segmentation fault when writing to an automatic character array

domob at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 2 17:55:00 GMT 2011


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.



More information about the Gcc-bugs mailing list