[PATCH] D36918: [Sema] Take into account the current context when checking the accessibility of a member function pointer
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 31 10:22:37 PDT 2018
ahatanak added a comment.
It doesn't look like it's possible to get the context needed to do accessibility check (CXXMethodDecl 'method' for 'C::overloadedMethod' in the test case) from 'Expr *OvlExpr' in CheckAddressOfMemberAccess. It's possible to get the class in which the member is defined (class ''C' for C::overloadedMethod'), but we want the context in which the member is used (that is 'method').
Repository:
rC Clang
https://reviews.llvm.org/D36918
More information about the cfe-commits
mailing list