Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c++ Subject: Re: The "new" Operator and the Copy Constructor Message-ID: <643@taumet.com> Date: 28 Mar 91 17:02:47 GMT References: <1991Mar27.233549.1487@jpl-devvax.jpl.nasa.gov> Organization: Taumetric Corporation, San Diego Lines: 14 seq@jpl-devvax.jpl.nasa.gov (Sequence Folks) writes: |1) The compiler complains when I try to create an object from the heap |using the default copy constructor. | class D {}; | D d; | D* pd; | pd = new D(d); This is a compiler bug. The code should work, and does on other compilers I tried. -- Steve Clamage, TauMetric Corp, steve@taumet.com