BUG

David DAVIDTM@jazzfree.com
Fri Mar 31 15:26:00 GMT 2000


Sorry is bug is register. I cannot find sources that are included with
bugs.

DTM
// TO: egcs-bugs@egcs.cygnus.com
// BUG:
//  I compile this file and I obtain: 
//   deivadas.C:27: sorry, not implemented: adjusting pointers for covariant returns
// The line is the unique // in code.
// The problem is : NOT COMPILE AND IT SHOULD return ERROR OVERLOADING FUNCTION ...
// OR anything shuch this.
// Good Luck,
// DTM

class D2D
{
public:
  virtual D2D *Open( ) = 0 ;
} ;

class CONVERT : virtual public D2D
{
public:
  virtual CONVERT *Open( int a ) = 0 ;
} ; 

class D2D_G : virtual public D2D
{
public:
  C( ) { } 
} ; 


class D : public D2D_G , public CONVERT
{
public:
  D ( ) { }
  // THIS FUNCTION COULD BE D2D *Open( ) { }
  virtual CONVERT *Open( ) { return new D ; }
  virtual CONVERT *Open( int a ) { return new D ; }
} ;


int main ( )
{
  D d ;
}


More information about the Gcc-bugs mailing list