| 1 |
// { dg-do compile { target c++14 } } |
| 2 |
// { dg-options "-Wunused-but-set-variable" } |
| 3 |
|
| 4 |
template <int... I> struct A { }; |
| 5 |
template <int... I> |
| 6 |
auto f() |
| 7 |
{ |
| 8 |
constexpr int ar[sizeof...(I)+1] = {I...}; |
| 9 |
return A<ar[I]...>(); |
| 10 |
} |
| 11 |
|
| 12 |
int main() |
| 13 |
{ |
| 14 |
f<>(); |
| 15 |
} |