[clang] [C++20][Coroutines] Lambda-coroutine with operator new in promise_type (PR #84193)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 27 18:46:45 PDT 2025
ChuanqiXu9 wrote:
> Hi. I tried to fix this issue locally by adding a function `__builtin_lambda_this()` and it seems to work. I can create PR if you think this is a good approach. And I have some questions:
>
> 1. Should this builtin function handle lambda expression only? What about `__builtin_member_function_caller()`?
> 2. Is RFC needed to add this builtin function?
> 3. How to handle non-static captureless lambda expression? Following current resolution of [CWG3040](https://cplusplus.github.io/CWG/issues/3040.html)?
Would you like to give a brief introduction for your design. I didn't figure it out.
https://github.com/llvm/llvm-project/pull/84193
More information about the cfe-commits
mailing list