[PATCH] D36918: [Sema] Take into account the current context when checking the accessibility of a member function pointer

Jan Korous via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 31 09:52:09 PDT 2018


jkorous added a comment.

I don't particularly like that between setting the DeclContext (SemaTemplateDeduction.cpp:3814) and actually using it (CheckAccess() in SemaAccess.cpp:1459) are some 20 stack frames but it looks like you already tried fixing this "locally" in your initial approach.

I assume we can't get the appropriate DeclContext from Expr *OvlExpr in CheckAddressOfMemberAccess(), right?


Repository:
  rC Clang

https://reviews.llvm.org/D36918





More information about the cfe-commits mailing list