https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116828

--- Comment #2 from Jordan <8e3g6jay6 at mozmail dot com> ---
I have actually examined this further and it seems like it's managing to
perfectly overflow back to 0 somehow. I am not sure if there is supposed to be
some sort of error or any kind of protection on overflowing integers though.

I was wondering why I was so confused by this because I am running in debug
mode and I was receiving 0 as my output. But I have checked and I have been
getting warnings about integer limits and overflow protection in certain
scenarios. But I am wondering why this is not causing an error stop or anything
in this horrible scenario I have created. If there is a flag to error out and I
have simply missed it, please, let me know.

Reply via email to