parse.y (find_applicable_accessible_methods_list): Don't add an uninitialized value...
authorZack Weinberg <zack@wolery.cumb.org>
Fri, 26 May 2000 18:57:28 +0000 (18:57 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 26 May 2000 18:57:28 +0000 (18:57 +0000)
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

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

index c1f0371..e124bce 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * parse.y (resolve_field_access): Don't check DECL_LANG_SPECIFIC
index 17b8f23..ce8a522 100644 (file)
@@ -12633,11 +12633,13 @@ find_applicable_accessible_methods_list (lc, class, name, arglist)
        for (i = 1; i < n; i++)
          {
            tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
-           tree rlist;
            if (t != object_type_node)
-             rlist = find_applicable_accessible_methods_list (lc, t,
-                                                              name, arglist);
-           list = chainon (rlist, list);
+             {
+               tree rlist
+                 = find_applicable_accessible_methods_list (lc, t,
+                                                            name, arglist);
+               list = chainon (rlist, list);
+             }
          }
        object_done = 0;
       }
index f504544..c201090 100644 (file)
@@ -10001,11 +10001,13 @@ find_applicable_accessible_methods_list (lc, class, name, arglist)
        for (i = 1; i < n; i++)
          {
            tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
-           tree rlist;
            if (t != object_type_node)
-             rlist = find_applicable_accessible_methods_list (lc, t,
-                                                              name, arglist);
-           list = chainon (rlist, list);
+             {
+               tree rlist
+                 = find_applicable_accessible_methods_list (lc, t,
+                                                            name, arglist);
+               list = chainon (rlist, list);
+             }
          }
        object_done = 0;
       }