blob: 50c292a1958abb48fdcdb06aaf90cc3e91761723 [file] [log] [blame]
// PR c++/79504
// { dg-do compile { target c++11 } }
struct A
{
void f () & {}
template <typename ...Args>
auto f (Args &&... args) && -> decltype (this->f (args...))
{
return this->f (args...);
}
};
int main (){
A p;
p.f ();
A{}.f();
}