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 == '+')