https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Have you tried -fsanitize=undefined or -fsanitize=address to see if there is undefined behavior in there?