This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/79345] [6/7 Regression] passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Mar 2017 09:51:07 +0000
- Subject: [Bug tree-optimization/79345] [6/7 Regression] passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)
- Auto-submitted: auto-generated
- References: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79345
--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 40858
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40858&action=edit
unreduced testcase for false positive
Bootstrap issue #2 (posted questionable workaround, not analyzed properly):
> ./cc1plus -quiet -O2 -Wuninitialized -o /dev/null ~/ipa-cp.ii
In file included from /space/rguenther/src/svn/trunk/gcc/coretypes.h:365:0,
from /space/rguenther/src/svn/trunk/gcc/ipa-cp.c:105:
/space/rguenther/src/svn/trunk/gcc/wide-int.h: In function ‘unsigned int
ipcp_driver()’:
/space/rguenther/src/svn/trunk/gcc/wide-int.h:881:3: warning:
‘*((void*)&<anonymous> +8)’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
storage::operator = (x);
^~~~~~~
/space/rguenther/src/svn/trunk/gcc/wide-int.h:881:3: warning:
‘*((void*)&<anonymous> +16)’ may be used uninitialized in this function
[-Wmaybe-uninitialized]