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

template <class T>
struct S1; // ERROR - previous declaration

template <class T, class U>
struct S1 {}; // ERROR - used 1 template parameter

template <class T = int> // ERROR - original def of default
struct S2; 

template <class T = int>
struct S2; // ERROR - redefinition of default

template <class T> // ERROR - template parameter
struct S3;

template <int I>
struct S3; // ERROR - redeclared here

template <template <class T> class C>
struct S3; // ERROR - redeclared here