[clang] [Clang] Fix evaluation context of lambdas appearing in discarded statements (PR #146857)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 3 04:10:41 PDT 2025
================
@@ -18252,6 +18252,11 @@ static bool isImplicitlyDefinableConstexprFunction(FunctionDecl *Func) {
if (Func->isImplicitlyInstantiable() || !Func->isUserProvided())
return true;
+
+ // Lambda conversion operators are never user provided
----------------
tbaederr wrote:
```suggestion
// Lambda conversion operators are never user provided.
```
https://github.com/llvm/llvm-project/pull/146857
More information about the cfe-commits
mailing list