dougsonos wrote:

> ```c++
> struct S { ~S(); };
> void f() {
>     S s;
>     [&]() [[clang::nonblocking]] {
>         [s]{ auto x = &s; }();
>         [=]{ auto x = &s; }();
>     }();
> }
> ```

With this patch, here we get two warnings that S's destructor is being called 
from the nonblocking lambda.

https://github.com/llvm/llvm-project/pull/166110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to