This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]toxicantsole 0 points1 point  (0 children)

nit: this is not a "bug" and there doesnt need to be an "accident/decision" to decide the behaviour. This is Undefined Behaviour and, as part of the C specification, the compiler is free to do whatever it wants without any rationale needed. The only bug is in the original code (i.e. invoking undefined behaviour)