diff options
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r-- | gcc/cp/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 45a5ea3d10b..9d47aaf59e7 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -1273,7 +1273,7 @@ lookup_member (tree xbasetype, tree name, int protect, bool want_type) && !really_overloaded_fn (rval) && !(TREE_CODE (rval) == FUNCTION_DECL && DECL_NONSTATIC_MEMBER_FUNCTION_P (rval))) - perform_or_defer_access_check (basetype_path, rval); + perform_or_defer_access_check (basetype_path, rval, rval); if (errstr && protect) { |