Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!LURCH.STANFORD.EDU!tiemann From: tiemann@LURCH.STANFORD.EDU (Michael Tiemann) Newsgroups: gnu.g++ Subject: When polymorphic, when not? Message-ID: <8912080913.AA14033@lurch.Stanford.EDU> Date: 8 Dec 89 09:13:12 GMT References: <10225@alice.UUCP> Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@lurch.stanford.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 12 32 B b = d; // g++ won't compile this line ("unexpected argument 33 // to constructor `B'") // apparently a bug in g++. B always has a copy // constructor B::const(B&) and you can bind the // argument of that constructor to a D. Breaking with past tradition, GNU C++ 1.36.2 will give default copy constructor when B has a constructor defined. It is slated for release very soon. Michael