aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/search.cc')
-rw-r--r--gcc/cp/search.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/search.cc b/gcc/cp/search.cc
index 9432200..f7be4a1 100644
--- a/gcc/cp/search.cc
+++ b/gcc/cp/search.cc
@@ -1008,7 +1008,7 @@ shared_member_p (tree t)
/* Conservatively assume a dependent using-declaration
might resolve to a non-static member. */
return false;
- if (DECL_NONSTATIC_MEMBER_FUNCTION_P (decl))
+ if (DECL_OBJECT_MEMBER_FUNCTION_P (decl))
return false;
}
return true;
@@ -1264,7 +1264,7 @@ lookup_member (tree xbasetype, tree name, int protect, bool want_type,
decl = strip_using_decl (decl);
/* A dependent USING_DECL will be checked after tsubsting. */
if (TREE_CODE (decl) != USING_DECL
- && !DECL_NONSTATIC_MEMBER_FUNCTION_P (decl)
+ && !DECL_IOBJ_MEMBER_FUNCTION_P (decl)
&& !perform_or_defer_access_check (basetype_path, decl, decl,
complain, afi))
return error_mark_node;
@@ -1737,6 +1737,7 @@ field_access_p (tree component_ref, tree field_decl, tree field_type)
return false;
tree ptr = STRIP_NOPS (TREE_OPERAND (indirect_ref, 0));
+ /* ??? is_object_parameter? */
if (!is_this_parameter (ptr))
return false;