This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36114] [4.4 Regression] "f951: internal compiler error: Bus error" due to revision 134867
- From: "jaydub66 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2008 20:11:18 -0000
- Subject: [Bug fortran/36114] [4.4 Regression] "f951: internal compiler error: Bus error" due to revision 134867
- References: <bug-36114-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jaydub66 at gmail dot com 2008-05-03 20:11 -------
Confirmed. The ICEs you get are really due to my rev. 134867, which actually
also triggered some testsuite failures (use_only_1.f90 and g77/970915-0.f). I
have no idea why I didn't notice it (sorry!).
This can easily be fixed by the following small patch:
Index: gcc/fortran/misc.c
===================================================================
--- gcc/fortran/misc.c (revision 134867)
+++ gcc/fortran/misc.c (working copy)
@@ -77,6 +77,7 @@ gfc_clear_ts (gfc_typespec *ts)
ts->derived = NULL;
ts->kind = 0;
ts->cl = NULL;
+ ts->interface = NULL;
/* flag that says if the type is C interoperable */
ts->is_c_interop = 0;
/* says what f90 type the C kind interops with */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36114