OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / redecl1.C
1 // Build don't link:
2
3 template <class T>
4 struct S1; // ERROR - previous declaration
5
6 template <class T, class U>
7 struct S1 {}; // ERROR - used 1 template parameter
8
9 template <class T = int> // ERROR - original def of default
10 struct S2; 
11
12 template <class T = int>
13 struct S2; // ERROR - redefinition of default
14
15 template <class T> // ERROR - template parameter
16 struct S3;
17
18 template <int I>
19 struct S3; // ERROR - redeclared here
20
21 template <template <class T> class C>
22 struct S3; // ERROR - redeclared here