(check_methods_accessible): Handle interface types.
From-SVN: r4357
This commit is contained in:
parent
d7c837272e
commit
266dd51787
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue