schmidt@crimee.ics.uci.edu (Doug Schmidt) (07/14/89)
Hi,
The following appears to be a bug with g++ 1.35.0:
----------------------------------------
class base
{
public:
virtual int f() { printf ("base\n"); }
};
class derived : public base
{
public:
int f() { printf ("derived\n"); }
};
main ()
{
derived d;
// should print `base', but prints `derived.'
d.base::f();
}
----------------------------------------
This works correctly with cfront 1.2. (Thanks to rfg for pointing
this out).
Doug
--
Master Swordsman speak of humility; | schmidt@ics.uci.edu (ARPA)
Philosophers speak of truth; | office: (714) 856-4034
Saints and wisemen speak of the Tao of no doubt;
The moon, sun, and sea speaks for itself. -- Hiroshi Hamada