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
This commit is contained in:
Tom Tromey 2000-06-30 00:07:19 +00:00 committed by Tom Tromey
parent 671e85f60b
commit 6eaeeb553a
3 changed files with 7 additions and 2 deletions

View 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

View 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);

View 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);