[Bug sanitizer/64717] -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]

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 29 20:40:00 GMT 2015


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 29 20:40:07 2015
New Revision: 220262

URL: https://gcc.gnu.org/viewcvs?rev=220262&root=gcc&view=rev
Log:
    PR c++/64717
    * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
    into SAVE_EXPR.

    * g++.dg/ubsan/pr64717-1.C: New test.
    * g++.dg/ubsan/pr64717-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr64717-1.C
    trunk/gcc/testsuite/g++.dg/ubsan/pr64717-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-ubsan.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list