This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC do not honor casting when calling constructors from constructors
- To: rosbacke at nada dot kth dot se
- Subject: Re: GCC do not honor casting when calling constructors from constructors
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 8 Mar 2000 18:07:05 +0100
- CC: gcc-bugs at gcc dot gnu dot org, rosbacke at nada dot kth dot se
- References: <38C6656F.55495D6A@nada.kth.se>
> I'm not sure if this is a bug of gcc or a feature of C++ syntax. Sending
> it in anyway.
Thanks for your bug report. I've put it into GNATS. Out of curiosity:
Why do you want to write such code? If it worked, it would create a
temporary Hvec object, use that to create a temporary Camera2 object,
would destroy the Camera2 object, then destroy the Hvec object. There
is no Java-style constructor delegation in C++.
Regards,
Martin