https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #4) > For this testcase, my patch gives: > > test.cc:8:34: error: invalid use of non-static member function ‘void X::m()’ That seems great to me.