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/81981] [8 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear


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.

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