This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]