gcc/testsuite/g++.old-deja/g++.pt/ttp55.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Testing overloading of function argument involving template template |
| 4 | // parameters |
| 5 | |
| 6 | // Reported by Thomus Kunert <[email protected]> |
| 7 | |
| 8 | template<class A> |
| 9 | class H{}; |
| 10 | |
| 11 | template <class T> |
| 12 | void f( const T& ){} // #1 |
| 13 | |
| 14 | template< template<class, class> class X, |
| 15 | class A, class B> |
| 16 | void f( const X<A,B> & x ) // #2 |
| 17 | {} |
| 18 | |
| 19 | int main() |
| 20 | { |
| 21 | H<int> h; |
| 22 | f(h); // #3 |
| 23 | } |