https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90307
Bug ID: 90307 Summary: -Wuninitialized only at -O1, not at -O2 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rafael at espindo dot la CC: mjambor at suse dot cz Target Milestone: --- Created attachment 46271 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46271&action=edit testcase Starting at 00ee3e3e4fea0457ef84bada636ae26ffcc95fff -Wall -O1 on the attached testcase will print distributed_test.ii:27:24: warning: ‘*((void*)& s +8)’ is used uninitialized in this function [-Wuninitialized] But the warning goes away at -O2 an higher. Should this perhaps be in -Wmaybe-uninitialized?