summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice1.C
blob: 1ea8f4d7b58bd79a17a205755520243a0e3a7432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/43790
// { dg-options "-std=c++0x" }

struct A
{
  int f();
};

int main()
{
  A a;
  auto l = [] () { return a.f(); }; // { dg-error "not captured|return" }
}