This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81981] [8 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Aug 2017 13:33:47 +0000
- Subject: [Bug sanitizer/81981] [8 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear
- Auto-submitted: auto-generated
- References: <bug-81981-4@http.gcc.gnu.org/bugzilla/>
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.