URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// PRMS Id: 4346
|
// PRMS Id: 4346
|
// Bug: g++ dies on redefinition of cc_Array::repInvariant.
|
// Bug: g++ dies on redefinition of cc_Array::repInvariant.
|
|
|
class ccObjectInfo
|
class ccObjectInfo
|
{
|
{
|
public:
|
public:
|
virtual const ccObjectInfo& repInvariant (int =0) const;
|
virtual const ccObjectInfo& repInvariant (int =0) const;
|
};
|
};
|
|
|
template
|
template
|
class cc_Array : public ccObjectInfo
|
class cc_Array : public ccObjectInfo
|
{
|
{
|
public:
|
public:
|
virtual const ccObjectInfo& repInvariant (int =0) const ;
|
virtual const ccObjectInfo& repInvariant (int =0) const ;
|
};
|
};
|
|
|
template
|
template
|
const ccObjectInfo& cc_Array::repInvariant(int) const // { dg-error "previously declared" }
|
const ccObjectInfo& cc_Array::repInvariant(int) const // { dg-error "previously declared" }
|
{ return *this /* *this is required here */; }
|
{ return *this /* *this is required here */; }
|
|
|
template
|
template
|
class ccArray :public ccObjectInfo
|
class ccArray :public ccObjectInfo
|
{
|
{
|
ccArray (cc_Array*);
|
ccArray (cc_Array*);
|
};
|
};
|
|
|
template
|
template
|
class ccObjArray : public ccArray
|
class ccObjArray : public ccArray
|
{
|
{
|
ccObjArray();
|
ccObjArray();
|
};
|
};
|
|
|
template
|
template
|
const ccObjectInfo& cc_Array::repInvariant(int) const // { dg-error "redefinition" }
|
const ccObjectInfo& cc_Array::repInvariant(int) const // { dg-error "redefinition" }
|
{ return 0; }
|
{ return 0; }
|
|
|
typedef ccObjArray< double> ccROIRuns;
|
typedef ccObjArray< double> ccROIRuns;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.