Debian Codegraph @

gcc/testsuite/g++.dg/template/lookup14.C

raw
1 // PR c++/94799 - member template function lookup fails.
2
3 template<typename T>
4 struct A { };
5
6 template<typename T>
7 void fn (A<T> a)
8 {
9 // Don't perform name lookup of foo when parsing this template.
10 a.template A<T>::foo ();
11 }