https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105950
--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> --- Just running in GDB doesn't find bugs (and there is no -O6 level, -O3 is the highest). Did you try it with -fsanitize=undefined yet?