Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!mips!bridge2!jarthur!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug 900207.02 Message-ID: <25D0C36A.2273@paris.ics.uci.edu> Date: 8 Feb 90 00:55:06 GMT Organization: UC Irvine Department of ICS Lines: 30 // 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 */ } };