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/15181] gfc_conv_component_ref: Assertion `c->backend_decl' failed


------- Additional Comments From olchansk at panix dot com  2004-07-12 02:30 -------
This change seems to fix the ICE. In my example, gfc_typenode_for_spec() is
never called for "type(wire_type)", so I call to be hand.

[olchansk@send fortran]$ cvs diff -u trans-expr.c
Index: trans-expr.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/fortran/trans-expr.c,v
retrieving revision 1.12
diff -u -r1.12 trans-expr.c
--- trans-expr.c        29 Jun 2004 22:01:35 -0000      1.12
+++ trans-expr.c        12 Jul 2004 02:28:13 -0000
@@ -217,7 +217,9 @@
 
   c = ref->u.c.component;
 
-  assert (c->backend_decl);
+  gfc_typenode_for_spec(&c->ts);
+
+  assert(c->backend_decl);
 
   field = c->backend_decl;
   assert (TREE_CODE (field) == FIELD_DECL);

K.O.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15181


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