aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template4.C
blob: 7fcb45c3f9a497d0ae376d7a8cf621995c1b5dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Bug: g++ tries to instantiate ccList twice, and fails.
// Build don't link:

template<class T> class ccHandle{ };
template <class T> class ccList;
template <class T> class cc_List {
public:
  ccList <T>  copy ();
};

template <class T> class ccList : public ccHandle < cc_List <T> > {
public:
  ccList (int);
};

template <class T>
ccList <T> cc_List<T>::copy (){}

int main (int, char **) {
  ccList <int> size1();
}