Commit 30a3caef by Zack Weinberg Committed by Tom Tromey

parse.y (find_applicable_accessible_methods_list): Don't add an uninitialized value to the list.

2000-05-26  Zack Weinberg  <zack@wolery.cumb.org>

	* java/parse.y (find_applicable_accessible_methods_list):
	Don't add an uninitialized value to the list.

From-SVN: r34196
parent 344e498c
2000-05-26 Zack Weinberg <zack@wolery.cumb.org>
* java/parse.y (find_applicable_accessible_methods_list):
Don't add an uninitialized value to the list.
2000-05-25 Tom Tromey <tromey@cygnus.com> 2000-05-25 Tom Tromey <tromey@cygnus.com>
* parse.y (resolve_field_access): Don't check DECL_LANG_SPECIFIC * parse.y (resolve_field_access): Don't check DECL_LANG_SPECIFIC
......
...@@ -12633,11 +12633,13 @@ find_applicable_accessible_methods_list (lc, class, name, arglist) ...@@ -12633,11 +12633,13 @@ find_applicable_accessible_methods_list (lc, class, name, arglist)
for (i = 1; i < n; i++) for (i = 1; i < n; i++)
{ {
tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i)); tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
tree rlist;
if (t != object_type_node) if (t != object_type_node)
rlist = find_applicable_accessible_methods_list (lc, t, {
name, arglist); tree rlist
list = chainon (rlist, list); = find_applicable_accessible_methods_list (lc, t,
name, arglist);
list = chainon (rlist, list);
}
} }
object_done = 0; object_done = 0;
} }
......
...@@ -10001,11 +10001,13 @@ find_applicable_accessible_methods_list (lc, class, name, arglist) ...@@ -10001,11 +10001,13 @@ find_applicable_accessible_methods_list (lc, class, name, arglist)
for (i = 1; i < n; i++) for (i = 1; i < n; i++)
{ {
tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i)); tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
tree rlist;
if (t != object_type_node) if (t != object_type_node)
rlist = find_applicable_accessible_methods_list (lc, t, {
name, arglist); tree rlist
list = chainon (rlist, list); = find_applicable_accessible_methods_list (lc, t,
name, arglist);
list = chainon (rlist, list);
}
} }
object_done = 0; object_done = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment