0x59616e wrote:

> There is also the question of what happen in the deeply nested case
> 
> ```c++
> int foo(auto...);
> auto f(auto... a) {
>    return [] {
>            return [] () requires requires { foo(a...) ;} {};
>    }();
> }
> 
> auto g = f()();
> ```
> 
> we may have to visit all functions recursively from the bottom up to add 
> their locals / parameters / captures

How deep the nested level should we support ? Support for two levels is easy, 
but three (or more) levels is complicated. I wonder whether the three (or more) 
nested levels is common enough that deserves the support. Any thought ?

https://github.com/llvm/llvm-project/pull/65193
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to