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]
Other format: [Raw text]

[Bug c++/29117] Copy constructor is called with "this == &rhs"



------- 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


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