// PR c++/94799 - member template function lookup fails. template struct A { }; template void fn (A a) { // Don't perform name lookup of foo when parsing this template. a.template A::foo (); }