blob: 7a04bb5a51629ddb86488fb607cf7c5f4538f990 [file] [log] [blame]
// PR c++/67846
// { dg-do compile { target c++11 } }
class A
{
void foo ()
{
[=] { return foo; }; // { dg-error "cannot convert" }
}
void bar () const;
void bar ()
{
[=] { return bar; }; // { dg-error "unable to deduce" }
}
};