This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/2972] -Wuninitialized could warn about uninitialized member variable usage in constructors
- From: "gdr at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2006 03:43:27 -0000
- Subject: [Bug c++/2972] -Wuninitialized could warn about uninitialized member variable usage in constructors
- References: <bug-2972-381@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from gdr at gcc dot gnu dot org 2006-01-22 03:43 -------
(In reply to comment #5)
> Also, it should detect any scalar member variables that are not assigned to in
> any way in the constructor.
Agreed.
However -Wunitialized is taken over by the middle-end. This is
one more case where I agre with Mark Mitchell that the middl-end
should not try those things. Long term, we should move
such warnings to the front-end. Yes I know, that is not a
universally held opinon.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2972