Update ChangeLogs and version numbers for 2.95.3 release
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template40.C
bloba8803920a294e6f6b2bc4bc0fa6a6d359bbfa1c8
1 // PRMS id: 11315
2 // Bug: g++ doesn't recognize the copy ctor for Array<long>.
4 template <class Type>
5 class Array {
6 public:
7   Array(int sz=12)
8     : ia (new Type[sz]), size(sz) {}
9   ~Array() { delete[] ia;}
10   Array(const Array<long>& r) : size(0) {} // just for testing
11 private:
12   Type *ia;
13   int size;
16 int main(int argc, char *argv[])
18   Array<long> ia;       // looping occurs on this line