class.c (make_class_data): Check that super is compiled before building class referen...
authorTom Tromey <tromey@redhat.com>
Tue, 14 Jan 2003 18:59:01 +0000 (18:59 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 14 Jan 2003 18:59:01 +0000 (18:59 +0000)
* class.c (make_class_data): Check that super is compiled before
building class reference to it.

From-SVN: r61292

gcc/java/ChangeLog
gcc/java/class.c

index d1ad2011525581ab6375aafe0d5029e1db8f3fd0..73577eda7cfba8f7d9d6df3c511ebafa1e2f569f 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-14  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (make_class_data): Check that super is compiled before
+       building class reference to it.
+
 2003-01-14  Andrew Haley  <aph@redhat.com>
 
        * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a
index b5746718f28fd939b48ad6e2e56463710ce0de2f..2018d664736bbe9cc913e48daba2b8483ee620eb 100644 (file)
@@ -1497,7 +1497,8 @@ make_class_data (tree type)
   super = CLASSTYPE_SUPER (type);
   if (super == NULL_TREE)
     super = null_pointer_node;
-  else if (assume_compiled (IDENTIFIER_POINTER (DECL_NAME (type_decl))))
+  else if (assume_compiled (IDENTIFIER_POINTER (DECL_NAME (type_decl)))
+          && assume_compiled (IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (super)))))
     super = build_class_ref (super);
   else
     {