https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84121
Christian Nassau <noreply at nullhomotopie dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #4 from Christian Nassau <noreply at nullhomotopie dot de> --- This link clarified the issue for me ("Signed integer overflow is undefined behavior"): https://wiki.sei.cmu.edu/confluence/display/c/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow Sorry for the noise and thanks for looking into this so quickly.