cor3ntin wrote: I think you are close.
Try something like
```
if (isLambdaMethod(FD) && !isLambdaCallOperator(FD))
Current.InImmediateFunctionContext = FD->isConsteval() ||
Parent.isConstantEvaluated() ||
Parent.isImmediateFunctionContext();```
https://github.com/llvm/llvm-project/pull/232458
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
