summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/spec19.C
blob: 082431533d1a17a3770f7d1624848e6e76c062cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/18962

template<class T1,int N1>
class Klasse
{
public:
  template <class T2,int N2>
  void function( const Klasse<T2,N2>& );
};

template<>
template<class T2,int N2>
void Klasse<int,1>::function( const Klasse<T2,N2>& param ) 
{
  param; // make sure we use the argument list from the definition.
}

int main()
{
  Klasse<int,1> instance;
  Klasse<char,2> param;
  instance.function( param );
}