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: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2010 09:27:30 -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 #12 from jwakely dot gcc at gmail dot com 2010-06-03 09:27 -------
Apart from the false positives, another problem is that the check for
layout_pod_type_p is not right. An empty class is a POD but doesn't need
initialising.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2972