parse.y (resolve_field_access): Handle case where `type_found' is NULL.
authorTom Tromey <tromey@cygnus.com>
Fri, 30 Jun 2000 00:07:19 +0000 (00:07 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 30 Jun 2000 00:07:19 +0000 (00:07 +0000)
* parse.y (resolve_field_access): Handle case where `type_found'
is NULL.

From-SVN: r34795

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

index a0d020db06ba41247215835904d90a5dfda4030b..dc20cad6e6b7738b28ce912e139f014f0d3da25c 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-29  Tom Tromey  <tromey@cygnus.com>
+
+       * parse.y (resolve_field_access): Handle case where `type_found'
+       is NULL.
+
 2000-06-27  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * expr.c (lookup_field): The same field can be found through two
index e17372a9c3faec523423dcd3866f0f5e85fb205e..b45c566c28121648f790bf443a20370a55dfead0 100644 (file)
@@ -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);
index 33e9b372c33493b98b9ec35a7200039b0c440c3a..451ca49655ceeb5318fefc63d095220407247540 100644 (file)
@@ -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);