For PR libgcj/7073:
authorTom Tromey <tromey@redhat.com>
Tue, 2 Jul 2002 02:56:11 +0000 (02:56 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 2 Jul 2002 02:56:11 +0000 (02:56 +0000)
* parse.y (patch_incomplete_class_ref): Handle VOID_TYPE
specially.

From-SVN: r55167

gcc/java/ChangeLog
gcc/java/parse.y

index 755d40f..2a5b27a 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-01  Tom Tromey  <tromey@redhat.com>
+
+       For PR libgcj/7073:
+       * parse.y (patch_incomplete_class_ref): Handle VOID_TYPE
+       specially.
+
 2002-07-01  Roger Sayle  <roger@eyesopen.com>
 
        * java/decl.c (builtin_function): Accept additional parameter.
index c6179ba..dac6602 100644 (file)
@@ -14031,7 +14031,8 @@ patch_incomplete_class_ref (node)
   if (!(ref_type = resolve_type_during_patch (type)))
     return error_mark_node;
 
-  if (!flag_emit_class_files || JPRIMITIVE_TYPE_P (ref_type))
+  if (!flag_emit_class_files || JPRIMITIVE_TYPE_P (ref_type)
+      || TREE_CODE (ref_type) == VOID_TYPE)
     {
       tree dot = build_class_ref (ref_type);
       /* A class referenced by `foo.class' is initialized.  */