This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/79345] [6/7 Regression] passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)


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]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]