https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org, | |paolo.carlini at oracle dot com --- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Tom Tromey from comment #5) > (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. Perhaps Jason or Paolo know how to extract a declaration from an offset_ref for the testcase in comment #2.