[Bug sanitizer/81981] [8 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 25 15:02:00 GMT 2017


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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Looks like the problem is that since that revision in .uninit there's
UBSAN_PTR (&t, 0);
and so the warning probably thinks that t escapes and so doesn't warn.


More information about the Gcc-bugs mailing list