[gnu.g++.bug] Reference casting bug in g++-1.36.2-jan7

fox@devo.att.com (01/12/90)

There seems to be a problem with casting references into
derived types.  The following program elicits the error message:

  bug.C:5: request for member `i' in something not a class, structure or union

This worked in g++-1.36.2-dec21.  Let me know if this bug is
reproducable, so I can tell if there is some problem with the
way I compiled the compiler.

---------------- cut here ----------------
class Base {};

class Derived : public Base {
  int i;
  void f(Base& a) {return ((Derived&)a).i;}
};
------------------------------------------
David Fox
fox@allegra.att.com