> Why "must be sensible"? Why not just say "signed integer overflow is implementation-defined" and in a footnote say "for example, it may wrap, trap, saturate, or do anything else documented by your implementation"?
I don't think that actually defines anything - I don't think GCC would interpret that as anything other than undefined behaviour.
I don't think that actually defines anything - I don't think GCC would interpret that as anything other than undefined behaviour.