Fortran: checking of pointer targets for structure constructors [PR56423]
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-108829.C
blobe621a0d14d06a79604e24faa4e0e105ec95be32e
1 // PR c++/108829
2 // { dg-do compile { target c++11 } }
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" }
9 void h() {
10   f<1>();