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]

g++ bug on Alpha Linux



I just bootstrapped a g++ from the latest cvs sources on an Alpha
Linux box.  When I compile the following code derived from libgcj
with `-c -fno-rtti' I get:

p.ii:13: cannot declare variable `x' to be of type `Object'
p.ii:13:   since the following virtual functions are abstract:
p.ii:4:	   void _JvObjectPrefix::finalize ()

The error doesn't appear to show up with my bootstrapped PPC or IA-32
Linux tools.


class _JvObjectPrefix
{
protected:
  virtual void finalize (void) = 0;
};

class Object : public _JvObjectPrefix
{
protected:
  virtual void finalize (void);
};

Object x;



-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California

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