2 ms·
The standard is explicit that the behavior of code with undefined behavior is well... undefined and that implementations can do whatever they want.
by muldvarp 3y ago
The standard is explicit that the behavior of code with undefined behavior is well... undefined and that implementations can do whatever they want.
- torstenvl 3y agoReasonable people can disagree as to whether that interpretation is valid. No reasonable person can say that it is explicit. It simply, factually, is not. At no point in any version of the C Standard does the text "implementations can do whatever they want" appear. I have no time for blatant and insulting dishonesty. We're done here.
- muldvarp 3y ago"3.4.3 undefined behavior behavior, upon use of a nonportable or erroneous program construct or of erroneous data, for which this International Standard imposes no requirements" It is _very_ explicit. The following note is (as all notes are) not normative. So even if the note would cast any doubt (it really doesn't), it can safely be ignored.
- deleted 3y ago[deleted]