reverted erroneous checking -- sorry about that
authorTom Tromey <tromey@gcc.gnu.org>
Fri, 21 Dec 2001 19:18:52 +0000 (19:18 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 21 Dec 2001 19:18:52 +0000 (19:18 +0000)
From-SVN: r48250

gcc/java/parse.y

index b3f383c01f010477bfff87a19678bd04943082e8..7c50c971a3439837d54c3b5f5c7a8cac64ee67b1 100644 (file)
@@ -5232,23 +5232,14 @@ check_inner_circular_reference (source, target)
 
   if (!basetype_vec)
     return NULL_TREE;
-
+  
   for (i = 0; i < TREE_VEC_LENGTH (basetype_vec); i++)
     {
-      tree su;
-
-      /* We can end up with a NULL_TREE or an incomplete type here if
-        we are compiling multiple files at once.  It's safe to simply
-        ignore these cases.  */
-      if (TREE_VEC_ELT (basetype_vec, i) == NULL_TREE)
-       continue;
-      su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
-      if (INCOMPLETE_TYPE_P (su))
-       continue;
+      tree su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
 
       if (inherits_from_p (su, target))
        return lookup_cl (TYPE_NAME (su));
-
+      
       for (ctx = DECL_CONTEXT (TYPE_NAME (su)); ctx; ctx = DECL_CONTEXT (ctx))
        {
          /* An enclosing context shouldn't be TARGET */