blob: c7f3ba01576f8aa662a5403c6a81e5afb910235b [file] [log] [blame]
// PR c++/94799 - member template function lookup fails.
template<typename>
struct M { void fn() { } };
M<int>* bar (int);
M<int> bar2 (int);
template<typename T>
struct X : M<T> {
void xfn ()
{
this->template M<T>::fn ();
bar((T)1)->template M<T>::fn ();
bar2((T)1).template M<T>::fn ();
}
};
int
main ()
{
X<int> x;
x.xfn();
}