1// PR c++/3870
2// Test that performing a type instantiation in order to match up a
3// specialization doesn't clobber last_function_parms.
4
5template <class T>
6struct A { typedef int I; };
7
8template <class T>
9inline typename T::I
10foo (typename T::I, const T*);
11
12template <>
13int foo (int i, const A<long>*)
14{
15    return i + 1;
16}
17