================
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -std=c++17 %s -fsyntax-only -verify
+// expected-no-diagnostics
+template <typename... Ts> void g(Ts... p1s) {
+  (void)[&](auto... p2s) { ([&] { p1s; p2s; }, ...); };
+}                                                       
----------------
cor3ntin wrote:

can you add a test that
```cpp
template <typename... Ts> void g(Ts... p1s) {
  (void)[&](auto... p2s) { [&] { p1s; p2s; }; };
}                                                       
```
 does produce a diagnostic?


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

Reply via email to