// PR c++/57254 // { dg-require-effective-target c++11 } struct foo { template void bar(T) &; template void bar(T) &&; }; template void foo::bar(T) & {} template void foo::bar(T) && {} int main() { foo f; f.bar(0); }