summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-108829.C
blob: e621a0d14d06a79604e24faa4e0e105ec95be32e (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/108829
// { dg-do compile { target c++11 } }

template <int>
void f(void) {
  constexpr int IDX_PAGE_SIZE = 4096;
  int abyPage = [=, abyPage] { return IDX_PAGE_SIZE; }(); // { dg-error "redundant" }
}
void h() {
  f<1>();
}