1// PR c++/54310
2
3template <typename T>
4struct meta
5{
6  typedef typename T::type type;
7};
8
9struct S{};
10
11template <typename T>
12typename meta<T>::type foo(T, S);
13
14int foo(int, int);
15
16int main()
17{
18  foo(0, 0);
19}
20