[clang] [Clang][Sema] Fix issue on requires expression with templated base class member function (PR #85198)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 11 06:18:18 PDT 2024


================
@@ -7735,7 +7735,8 @@ ExprResult Sema::BuildResolvedCallExpr(Expr *Fn, NamedDecl *NDecl,
   }
 
   if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
-    if (Method->isImplicitObjectMemberFunction())
+    if (!isa<RequiresExprBodyDecl>(CurContext) &&
----------------
erichkeane wrote:

I don't really understand the change, can you better explain why this is the solution here?  

https://github.com/llvm/llvm-project/pull/85198


More information about the cfe-commits mailing list