| 1 |
// PR c++/108829 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<int, class... Ts> |
| 5 |
void f(Ts... ts) { |
| 6 |
constexpr int IDX_PAGE_SIZE = 4096; |
| 7 |
int abyPage = [=, ts...] { return IDX_PAGE_SIZE; }(); // { dg-error "redundant" } |
| 8 |
} |
| 9 |
void h() { |
| 10 |
f<1>(0, 1); |
| 11 |
} |