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: unassig...@gcc.gnu.org
        ReportedBy: ja...@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

Reply via email to