* search.c (protected_accessible_p): Use context_for_name_lookup.
* typeck.c (expand_ptrmemfunc_cst): Fix thinko.
From-SVN: r32275
2000-02-29 Jason Merrill <jason@casey.cygnus.com>
+ * search.c (protected_accessible_p): Use context_for_name_lookup.
+
* init.c (construct_virtual_bases): Fix thinko.
+ * typeck.c (expand_ptrmemfunc_cst): Fix thinko.
2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
member of a base. (jason 2000/02/28) */
/* If DERIVED isn't derived from m's class, then it can't be a P. */
- if (!DERIVED_FROM_P (DECL_CONTEXT (decl), derived))
+ if (!DERIVED_FROM_P (context_for_name_lookup (decl), derived))
return 0;
access = access_in_type (derived, decl);
if (!DECL_VIRTUAL_P (fn))
{
if (!flag_new_abi)
- *idx = convert (TYPE_PTRMEMFUNC_FN_TYPE (type), build_int_2 (-1, -1));
+ *idx = build_int_2 (-1, -1);
else
*idx = NULL_TREE;
*pfn = convert (TYPE_PTRMEMFUNC_FN_TYPE (type), build_addr_func (fn));