[comp.lang.c++] cfront 2.0 bug 900207.01

rfg@paris.ics.uci.edu (Ron Guilmette) (02/08/90)

// cfront 2.0 bug 900207.01

// cfront 2.0 will not allow you to explicitly call an implicitly generated
// default constructor for a base class as a ctor-initializer (see 12.6.2)
// for a drived class constructor.

// I can find nothing in the 2.0 Reference Manual to indicate that this should
// be illegal.


class c0 {
};

class c1 : public c0 {
public:
  c1 () {    /* OK - implicit call of implicit default constructor c0::c0()  */
  }
};

class c2 {
};

class c3 : public c2 {
public:
  c3 () : c2 () {	/* explicit call of c2::c2() causes erroneous error */
  }
};