Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / spec3.C
blobd3fa401b52e57e07487b47cc25fc179c8091613e
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.
5 template <class T>
6 struct A { typedef int I; };
8 template <class T>
9 inline typename T::I
10 foo (typename T::I, const T*);
12 template <>
13 int foo (int i, const A<long>*)
15     return i + 1;