This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49885] [4.6/4.7 Regression] Segmentation fault when writing to an automatic character array
- From: "domob at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 17:55:41 +0000
- Subject: [Bug fortran/49885] [4.6/4.7 Regression] Segmentation fault when writing to an automatic character array
- Auto-submitted: auto-generated
- References: <bug-49885-4@http.gcc.gnu.org/bugzilla/>
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.