re PR java/15710 (ICE: tree check: expected class 'E', have 'c' (integer_cst) in...
authorTom Tromey <tromey@redhat.com>
Tue, 28 Sep 2004 18:27:25 +0000 (18:27 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 28 Sep 2004 18:27:25 +0000 (18:27 +0000)
PR java/15710:
* class.c (add_miranda_methods): Load superinterface if not
already loaded.

From-SVN: r88243

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

index eaf591e58b61ed8a636bf7706d926d99515a098a..5651350501d5e91b90efc420303665bb5107f507 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-28  Tom Tromey  <tromey@redhat.com>
+
+       PR java/15710:
+       * class.c (add_miranda_methods): Load superinterface if not
+       already loaded.
+
 2004-09-28  Andrew Haley  <aph@redhat.com>
 
        PR java/17586
index 7a67e8f3e59f7a30d4bd4aea4de2cf596ebdaaa5..879775455b1cbcd84a2f1a7d4cb05a16bf6e649b 100644 (file)
@@ -2124,6 +2124,8 @@ add_miranda_methods (tree base_class, tree search_class)
       tree elt = BINFO_TYPE (base_binfo);
 
       /* Ensure that interface methods are seen in declared order.  */
+      if (!CLASS_LOADED_P (elt))
+       load_class (elt, 1);
       layout_class_methods (elt);
 
       /* All base classes will have been laid out at this point, so the order