This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

BUG


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 ;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]