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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-12-02
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is not the best reduced testcase because the original one was accepted
without -fms-extensions.


template <class Fp, class A0>
auto invoke(Fp && f, A0 && a0)  -> decltype(*(a0).*f)
{
  return (*(a0)).*f;
}

struct A{    void doB(); };
void g()
{
  A a;
  invoke(&A::doB, &a);
}


---- CUT ----
Let me find one which is accepted with -fms-extensions.

Reply via email to