This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC do not honor casting when calling constructors from constructors


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]