Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
)();
}