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

struct A
{
  int foo()
  {
    [this]{ return foo; }; // { dg-error "invalid use of member function|cannot convert" }
  }
};