Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
ref-qual10.C
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
)();
}