]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/crash4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / crash4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/crash4.C b/gcc/testsuite/g++.old-deja/g++.jason/crash4.C
deleted file mode 100644 (file)
index bf6a15c..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// PRMS Id: 4346
-// Bug: g++ dies on redefinition of cc_Array::repInvariant.
-// Build don't link:
-
-class ccObjectInfo
-{
-public:
-    virtual const ccObjectInfo& repInvariant (int =0) const;
-};
-
-template <class T>
-class cc_Array : public ccObjectInfo
-{
-public:
-  virtual const ccObjectInfo& repInvariant (int =0) const ;
-};
-
-template <class T>
-const ccObjectInfo& cc_Array<T>::repInvariant(int) const
-{  return *this /* *this is required here */; } // ERROR - redefined
-
-template <class T>
-class ccArray :public ccObjectInfo
-{
-  ccArray (cc_Array<T>*);
-};
-
-template <class T>
-class ccObjArray : public ccArray<T>
-{
-  ccObjArray();
-}; 
-
-template <class T>
-const ccObjectInfo& cc_Array<T>::repInvariant(int) const
-{  return 0; }                 // ERROR - causes compiler segfault
-
-typedef ccObjArray< double>    ccROIRuns;