https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106109
--- Comment #4 from Philip Deegan <philip.deegan at gmail dot com> --- as a minimal reproducer ` template<typename T> class G { public: auto static F() { return 1; } }; int main() { auto fn = [](auto const& f) -> void { f(); }; fn(G<double>::F); return 0; } ` https://godbolt.org/z/f4WYnPvs6 Only if G is a template class does it appear