https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100405
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Another option would be to add an implicit __builtin_trap() there. Failing hard is probably preferable to the kind of surprising behaviour you get from the optimizers today.