Commit 266dd517 by Richard Stallman

(check_methods_accessible): Handle interface types.

From-SVN: r4357
parent d7c83727
...@@ -5342,12 +5342,14 @@ check_methods_accessible (chain, context, mtype) ...@@ -5342,12 +5342,14 @@ check_methods_accessible (chain, context, mtype)
if (lookup_method (list, chain)) if (lookup_method (list, chain))
break; break;
else if (TREE_CODE (context) == CLASS_IMPLEMENTATION_TYPE) else if (TREE_CODE (context) == CLASS_IMPLEMENTATION_TYPE
|| TREE_CODE (context) == CLASS_INTERFACE_TYPE)
context = (CLASS_SUPER_NAME (context) context = (CLASS_SUPER_NAME (context)
? lookup_interface (CLASS_SUPER_NAME (context)) ? lookup_interface (CLASS_SUPER_NAME (context))
: NULL_TREE); : NULL_TREE);
else if (TREE_CODE (context) == CATEGORY_IMPLEMENTATION_TYPE) else if (TREE_CODE (context) == CATEGORY_IMPLEMENTATION_TYPE
|| TREE_CODE (context) == CATEGORY_INTERFACE_TYPE)
context = (CLASS_NAME (context) context = (CLASS_NAME (context)
? lookup_interface (CLASS_NAME (context)) ? lookup_interface (CLASS_NAME (context))
: NULL_TREE); : NULL_TREE);
......
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