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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2006 04:27: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 #5 from bangerth at dealii dot org 2006-10-10 04:27 -------
Here's the right combination of flags that warns (for f3() only):
g/x> /home/bangerth/bin/gcc-4.2-pre/bin/c++ -Winit-self -Wuninitialized -O2 -c
x.cc
x.cc: In function ‘void f3()’:
x.cc:42: warning: ‘d3$c$v’ is used uninitialized in this function
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29117