// PR c++/3870 // Test that performing a type instantiation in order to match up a // specialization doesn't clobber last_function_parms. template struct A { typedef int I; }; template inline typename T::I foo (typename T::I, const T*); template <> int foo (int i, const A*) { return i + 1; }