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). 5 6 template <typename T> int g(int); 7 class h{}; l()8template <typename T> int l(){h j; return g<T>(j);} 9 template <typename T> int g(const h&); 10 class j{}; jj()11int jj(){return l<j>();} 12