summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this10.C
blob: e8e94771ef0615ed2b9bfe8a2919564ca0516544 (plain)
1
2
3
4
// PR c++/54383
// { dg-do compile { target c++11 } }

auto foo = [&](int a) { return a > this->b; }; // { dg-error "non-local|this" }