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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Signed integer overflow is undefined behaviour, so there is no "intended
behaviour". Any behaviour is permitted, because the program is not a valid C
program.

Using -fwrapv or -ftrapv gives a defined behaviour, but without either of those
options, there is no "intended behaviour", just undefined behaviour.

Reply via email to