|
|
|
|
|
by sjolsen
3406 days ago
|
|
Which is exactly the motivation behind implementation-defined behavior. There's a broad range of "how much detail do you put in the specification" between the extremes of "this is exactly how the program should behave" and "this program fragment is ill-formed, therefore we make no guarantees about the behavior of the overall program whatsoever." |
|
And I'm not sure if optimizations such as those that require weak aliasing would be possible if the behavior was simply implementation-defined.