rfg@paris.ics.uci.edu (Ron Guilmette) (02/08/90)
// cfront 2.0 bug 900207.02
// Cfront 2.0 will not allow you to explicitly call an implicitly generated
// default constructor for a member as a ctor-initializer (see 12.6.2)
// for a containing class constructor.
// I can find nothing in the 2.0 Reference Manual to indicate that this should
// be illegal.
class c0 {
};
class c1 {
class c0 c0_member;
public:
c1 () { /* OK - implicit call of implicit default constructor c0::c0() */
}
};
class c2 {
};
class c3 {
class c2 c2_member;
public:
c3 () : c2_member () { /* explicit call of c2::c2() causes erroneous error */
}
};