Hacker News new | ask | show | jobs
by Gibbon1 2499 days ago
> A lot of UB, such as your signed integer addition example, is dependent upon the behavior of the underlying hardware.

That problem is you can no longer depend on that because the compiler writers have decided they can do anything during AST optimization when there is undefined behavior.

1 comments

That's because...they can. Because the behavior of the statement is undefined.
“Those who can make you believe absurdities, can make you commit atrocities.” -Voltaire

Who knew he was talking about C compilers??