https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115019
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID URL|https://godbolt.org/z/be37n | |7Mz3 | Host|x86_64-pc-linux-gnu | Build|x86_64-pc-linux-gnu | Status|UNCONFIRMED |RESOLVED Target|x86_64-pc-linux-gnu | --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is an undefined behavior with signed integer overflow. Did you try with -fsanitize=undefined as requested by the bug reporting page?