https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you also compile with -fsanitize=undefined and try that? Can you also try -fsanitize=address ? This might detect if it is a bug in the code vs a bug in GCC.