// PR c++/54310 template struct meta { typedef typename T::type type; }; struct S{}; template typename meta::type foo(T, S); int foo(int, int); int main() { foo(0, 0); }