From 415f766a6507d0898d7c169c2d29a6b06fbf7991 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 28 Oct 1993 21:33:07 -0400 Subject: [PATCH] (check_methods_accessible): Fix bug in -Wno-protocol. (check_methods_accessible): Fix bug in -Wno-protocol. Reset chain to bottom class for each search. From-SVN: r5927 --- gcc/objc/objc-act.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 7db3d88db88..3431f19be17 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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 == '+') -- 2.30.2