https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115073
--- Comment #4 from Andrew Pinski ---
Note -fsanitize=undefined does detect this undefinedness at runtime already
too.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115073
--- Comment #3 from Jakub Jelinek ---
Or another option is to use C23 , that is well defined for all
values.
But you need recent glibc (2.39 snapshots or 2.40) & gcc (14) for that.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115073
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115073
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment