3 // Bug: g++ dies on redefinition of cc_Array::repInvariant.
8 virtual const ccObjectInfo& repInvariant (int =0) const;
12 class cc_Array : public ccObjectInfo
15 virtual const ccObjectInfo& repInvariant (int =0) const ;
19 const ccObjectInfo& cc_Array<T>::repInvariant(int) const // { dg-error "previously declared" }
20 { return *this /* *this is required here */; }
23 class ccArray :public ccObjectInfo
25 ccArray (cc_Array<T>*);
29 class ccObjArray : public ccArray<T>
35 const ccObjectInfo& cc_Array<T>::repInvariant(int) const // { dg-error "redefinition" }
38 typedef ccObjArray< double> ccROIRuns;