Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / koenig7.C
blob07f2fcad33d244336e12c308c562e822e962e422
1 // PR c++/13549
2 // We need to do arg-dep lookup for g<T>(j) at instantiation time because
3 // g<T> is dependent, even though (j) is not; at that point we can find
4 // g(h).
6 template <typename T> int g(int);
7 class h{};
8 template <typename T> int l(){h j; return g<T>(j);}
9 template <typename T> int g(const h&);
10 class j{};
11 int jj(){return l<j>();}