Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic22.C

raw
1 // PR c++/104624
2 // { dg-do compile { target c++14 } }
3
4 template <typename T>
5 auto f (T)
6 {
7 auto a = [](auto ... i) // { dg-prune-output "incomplete" }
8 {
9 int x[][i] = { 0 }; // { dg-error "not expanded" }
10 }();
11 }
12 void g ()
13 {
14 f(0);
15 }