https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61721
--- Comment #5 from Lauri Kasanen <cand at gmx dot com> --- A -fsanitize=undefined built binary does not print anything. I understand it can't catch all undefined behavior? What is more interesting that adding -fsanitize=undefined to a failing case makes it work, changing nothing else. So it too affects the optimizer somehow.