Commit e185aa16 by Jason Merrill Committed by Jason Merrill

search.c (protected_accessible_p): Use context_for_name_lookup.

        * search.c (protected_accessible_p): Use context_for_name_lookup.

        * typeck.c (expand_ptrmemfunc_cst): Fix thinko.

From-SVN: r32275
parent ba412f14
2000-02-29 Jason Merrill <jason@casey.cygnus.com> 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. * 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> 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
......
...@@ -997,7 +997,7 @@ protected_accessible_p (decl, derived, binfo) ...@@ -997,7 +997,7 @@ protected_accessible_p (decl, derived, binfo)
member of a base. (jason 2000/02/28) */ 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 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; return 0;
access = access_in_type (derived, decl); access = access_in_type (derived, decl);
......
...@@ -6324,7 +6324,7 @@ expand_ptrmemfunc_cst (cst, delta, idx, pfn, delta2) ...@@ -6324,7 +6324,7 @@ expand_ptrmemfunc_cst (cst, delta, idx, pfn, delta2)
if (!DECL_VIRTUAL_P (fn)) if (!DECL_VIRTUAL_P (fn))
{ {
if (!flag_new_abi) if (!flag_new_abi)
*idx = convert (TYPE_PTRMEMFUNC_FN_TYPE (type), build_int_2 (-1, -1)); *idx = build_int_2 (-1, -1);
else else
*idx = NULL_TREE; *idx = NULL_TREE;
*pfn = convert (TYPE_PTRMEMFUNC_FN_TYPE (type), build_addr_func (fn)); *pfn = convert (TYPE_PTRMEMFUNC_FN_TYPE (type), build_addr_func (fn));
......
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