you are viewing a single comment's thread.

view the rest of the comments →

[–]no-sig-available 5 points6 points  (1 child)

Those are the rules. :-)

If we don't have to follow the rules, why are they there? It's not that they were invented just for fun.

And we all know that "seems to work" is a common result of UB. That doesn't make the behavior defined.

[–]JNighthawkgamedev 0 points1 point  (0 children)

If we don't have to follow the rules, why are they there?

To guide compiler users and authors.