(check_methods_accessible): Fix bug in -Wno-protocol.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 29 Oct 1993 01:33:07 +0000 (21:33 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 29 Oct 1993 01:33:07 +0000 (21:33 -0400)
(check_methods_accessible): Fix bug in -Wno-protocol.  Reset chain to
bottom class for each search.

From-SVN: r5927

gcc/objc/objc-act.c

index 7db3d88db88355e61d1b97adc48800f354d64087..3431f19be17cccf748014df113ffdc92ccdfb9ed 100644 (file)
@@ -5363,9 +5363,11 @@ check_methods_accessible (chain, context, mtype)
 {
   int first = 1;
   tree list;
+  tree base_context = context;
 
   while (chain)
     {
+      context = base_context;
       while (context)
        {
          if (mtype == '+')