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