[clang] [Clang] Don't assert non-empty packs for FunctionParmPackExprs (PR #107561)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 06:52:02 PDT 2024


================
@@ -1,13 +0,0 @@
-// RUN: %clang_cc1 -std=c++17 %s -fsyntax-only -verify
-
-template <typename... Ts> void g(Ts... p1s) {
-  (void)[&](auto... p2s) { ([&] { p1s; p2s; }, ...); };
-}
-
-void f1() {
-  g();
-}
-
-template <typename... Ts> void g2(Ts... p1s) {
-  (void)[&](auto... p2s) { [&] { p1s; p2s; }; }; // expected-error {{expression contains unexpanded parameter pack 'p2s'}}
----------------
erichkeane wrote:

I see this test isn't above, is it?  Why doesn't this contain an unexpanded parameter pack anymore?  OR, should this test be added above too?

https://github.com/llvm/llvm-project/pull/107561


More information about the cfe-commits mailing list