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 sanitizer/64717] New: -fsanitize=vptr leads to warning: â<anonymous>â may be used uninitialized in this function [-Wmaybe-uninitialized]


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.

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