https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think it has nothing to do with perfect forwarding, just the
reference-qualifier. Reduced:

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 ();
}

Reply via email to