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