]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/t14.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / t14.C
1 // Build don't link:
2
3 class OBJECT
4 {
5 int a;
6 };
7
8
9
10 template <class T> class TESTA
11 {
12 public:
13 TESTA();
14 T foo(int i) {T t = 0; return t}; // ERROR - no semi
15 };
16
17
18
19 void foo()
20 {
21 TESTA<OBJECT *> *foo;
22
23 foo = new TESTA<OBJECT *>;
24 }
This page took 0.038135 seconds and 5 git commands to generate.