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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #1 from Harald van Dijk <harald at gigawatt dot nl> ---
It's also accepted without the &, when it should be rejected in that case too:

struct A {
  void f();
  template<class T> void g();
};

int main() {
  A::f; // correctly rejected
  A::g<int>; // incorrectly accepted
}

Is that the same issue or should I open a new bug for that?

Reply via email to