[Bug tree-optimization/47679] New: [4.6 Regression] Strange uninitialized warning after SRA

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 10 14:48:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47679

           Summary: [4.6 Regression] Strange uninitialized warning after
                    SRA
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org


On the attached testcase (simplified from #include <boost/optional> and then
just getitem prototype and following lines) g++ starting with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164136
issues a weird warning with -O2 -m64 -Wall:
warning: ‘*((void*)& aNewItem +8)’ may be used uninitialized in this function
[-Wuninitialized]
(well, for some time it was an error about unhandled mem_ref in diagnostics).
Before that commit no warnings were reported.

For more details see http://bugzilla.redhat.com/676361



More information about the Gcc-bugs mailing list