[Bug c++/29117] Copy constructor is called with "this == &rhs"
oschmidt at gmx dot net
gcc-bugzilla@gcc.gnu.org
Mon Sep 18 08:47:00 GMT 2006
------- Comment #3 from oschmidt at gmx dot net 2006-09-18 08:47 -------
> > So which version do you think have a bug?
>
> I don't know which behaviour should be correct C++, but I think it is dangerous
> that an object with undefined content is constructed without even a compiler
> warning.
I think every tested g++ version has a bug for the function f3. The version
3.3.5 seems to be ok with funtion f4 but the other versions (3.4.4 and 4.0.4)
are also wrong in function f4.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29117
More information about the Gcc-bugs
mailing list