diff options
author | Tom Tromey <tromey@redhat.com> | 2002-07-02 02:56:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-07-02 02:56:11 +0000 |
commit | 68a830fe3a4d760b2a991c706aa12f4716015ec5 (patch) | |
tree | 3ef119a3a103d9365af476c357725ff3e2e8b3e7 | |
parent | 49925aed134286e8c838cd84281b19cecd7dec1a (diff) | |
download | gcc-68a830fe3a4d760b2a991c706aa12f4716015ec5.zip gcc-68a830fe3a4d760b2a991c706aa12f4716015ec5.tar.gz gcc-68a830fe3a4d760b2a991c706aa12f4716015ec5.tar.bz2 |
For PR libgcj/7073:
* parse.y (patch_incomplete_class_ref): Handle VOID_TYPE
specially.
From-SVN: r55167
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/parse.y | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 755d40f..2a5b27a 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index c6179ba..dac6602 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -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. */ |