OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / spec19.C
1 // PR c++/18962
2
3 template<class T1,int N1>
4 class Klasse
5 {
6 public:
7   template <class T2,int N2>
8   void function( const Klasse<T2,N2>& );
9 };
10
11 template<>
12 template<class T2,int N2>
13 void Klasse<int,1>::function( const Klasse<T2,N2>& param ) 
14 {
15   param; // make sure we use the argument list from the definition.
16 }
17
18 int main()
19 {
20   Klasse<int,1> instance;
21   Klasse<char,2> param;
22   instance.function( param );
23 }