This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18016] Warn about member variables initialized with itself
- From: "irving at cs dot stanford dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2007 15:45:18 -0000
- Subject: [Bug c++/18016] Warn about member variables initialized with itself
- References: <bug-18016-4042@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from irving at cs dot stanford dot edu 2007-04-27 16:45 -------
Is there any chance of activity on this bug?
It would be wonderful to have a warning for this
case, since these bugs can be extremely annoying to find.
If the infrastructure supports it, the ideal way to resolve this might
be to manually mark all fields of this uninitialized on entry to each
constructor. If that's impossible because the dataflow is run only on
top level variables, just checking for occurences of :a(a) would help
a lot.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18016