blob: 7bcfe3ae70bcea8b057e55ca13a22cd709491fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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" }
return 0;
}
};
|