From 6eaeeb553ad4319869928b00f6e6546b03c22d0f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 30 Jun 2000 00:07:19 +0000 Subject: [PATCH] parse.y (resolve_field_access): Handle case where `type_found' is NULL. * parse.y (resolve_field_access): Handle case where `type_found' is NULL. From-SVN: r34795 --- gcc/java/ChangeLog | 5 +++++ gcc/java/parse.c | 2 +- gcc/java/parse.y | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index a0d020d..dc20cad 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-06-29 Tom Tromey + + * parse.y (resolve_field_access): Handle case where `type_found' + is NULL. + 2000-06-27 Alexandre Petit-Bianco * expr.c (lookup_field): The same field can be found through two diff --git a/gcc/java/parse.c b/gcc/java/parse.c index e17372a..b45c566 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -11417,7 +11417,7 @@ resolve_field_access (qual_wfl, field_decl, field_type) /* Resolve the LENGTH field of an array here */ if (DECL_P (decl) && DECL_NAME (decl) == length_identifier_node - && TYPE_ARRAY_P (type_found) + && type_found && TYPE_ARRAY_P (type_found) && ! flag_emit_class_files && ! flag_emit_xref) { tree length = build_java_array_length_access (where_found); diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 33e9b37..451ca49 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -8719,7 +8719,7 @@ resolve_field_access (qual_wfl, field_decl, field_type) /* Resolve the LENGTH field of an array here */ if (DECL_P (decl) && DECL_NAME (decl) == length_identifier_node - && TYPE_ARRAY_P (type_found) + && type_found && TYPE_ARRAY_P (type_found) && ! flag_emit_class_files && ! flag_emit_xref) { tree length = build_java_array_length_access (where_found); -- 2.7.4