This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29117] Copy constructor is called with "this == &rhs"
- From: "oschmidt at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2006 08:47:26 -0000
- Subject: [Bug c++/29117] Copy constructor is called with "this == &rhs"
- References: <bug-29117-13267@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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