3 ms·
This part is telling: > If a signed operation would naturally produce a value that is not within the range of the result type, the behavior is undefined. The a
by xscott 4y ago
This part is telling:
> If a signed operation would naturally produce a value that is not within the range of the result type, the behavior is undefined. The author had hoped to make this well-defined as wrapping (the operations produce the same value bits as for the corresponding unsigned type), but WG21 had strong resistance against this.
So, even within the standards group there are disagreements on the topic.