blob: 1b6c54fd48a2773720665336391e2b668d4b82a4 [file] [log] [blame]
// PR c++/57252
// { dg-require-effective-target c++11 }
struct foo {
void bar() & {}
void bar() && {}
};
int main()
{
auto p = &foo::bar; // { dg-error "" }
(foo{}.*p)();
}