summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-30 00:07:19 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-30 00:07:19 +0000
commit754f26f784b4ef2b01e1dbd8f3451965d6061fb9 (patch)
tree09b976a62d06149572b2fd2e4913cbfb32e3024f
parentea1dadb7ea0a46f60c0268cd8ca17621783f5d1d (diff)
downloadppe42-gcc-754f26f784b4ef2b01e1dbd8f3451965d6061fb9.tar.gz
ppe42-gcc-754f26f784b4ef2b01e1dbd8f3451965d6061fb9.zip
* parse.y (resolve_field_access): Handle case where `type_found'
is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34795 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.c2
-rw-r--r--gcc/java/parse.y2
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index a0d020db06b..dc20cad6e6b 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index e17372a9c3f..b45c566c281 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 33e9b372c33..451ca49655c 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);
OpenPOWER on IntegriCloud