OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [crash4.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 4346
3
// Bug: g++ dies on redefinition of cc_Array::repInvariant.
4
 
5
class ccObjectInfo
6
{
7
public:
8
    virtual const ccObjectInfo& repInvariant (int =0) const;
9
};
10
 
11
template 
12
class cc_Array : public ccObjectInfo
13
{
14
public:
15
  virtual const ccObjectInfo& repInvariant (int =0) const ;
16
};
17
 
18
template 
19
const ccObjectInfo& cc_Array::repInvariant(int) const  // { dg-error "previously declared" }
20
{  return *this /* *this is required here */; }
21
 
22
template 
23
class ccArray :public ccObjectInfo
24
{
25
  ccArray (cc_Array*);
26
};
27
 
28
template 
29
class ccObjArray : public ccArray
30
{
31
  ccObjArray();
32
};
33
 
34
template 
35
const ccObjectInfo& cc_Array::repInvariant(int) const // { dg-error "redefinition" }
36
{  return 0; }
37
 
38
typedef ccObjArray< double>      ccROIRuns;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.