[Bug sanitizer/64717] New: -fsanitize=vptr leads to warning:=?UTF-8?Q?=20=E2=80=98?=<anonymous>=?UTF-8?Q?=E2=80=99=20may=20be=20used=20uninitialized=20in=20this=20function=20?=[-Wmaybe-uninitialized]
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 21 17:06:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list