aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ttp55.C
blob: 10af608bcbab7b00793a21994fc5488bd5ee1832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Build don't link:

// Testing overloading of function argument involving template template
// parameters

// Reported by Thomus Kunert <kunert@physik.tu-dresden.de>

template<class A>
class H{};

template <class T>
void f( const T& ){}                      // #1

template< template<class, class> class X, 
	class A, class B>
void f( const X<A,B> & x )                // #2
{}

int main()
{
    H<int> h;
    f(h);                                 // #3
}