https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64717

            Bug ID: 64717
           Summary: -fsanitize=vptr leads to warning: ‘<anonymous>’ may be
                    used uninitialized in this function
                    [-Wmaybe-uninitialized]
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

Created attachment 34522
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34522&action=edit
Testcase (test.ii), compile with: -Wmaybe-uninitialized -fsanitize=vptr

Using -fsanitize=vptr on a mid-size C++ code leads to a few hundreds of the
following warnings:

warning: ‘<anonymous>’ may be used uninitialized in this function
[-Wmaybe-uninitialized]


The test case shows with
  g++ -S -Wmaybe-uninitialized -fsanitize=vptr test.ii
also that message.

Reply via email to