News for hackers. Stuff that matters.
Re:GCC and Clang handle statically known undefined behaviour by pif on Tuesday June 25, 2024 @01:09PM (#40790978)
Just to be clear, I don't dislike this post for showing practical examples of UB. I'm just afraid that readers could take the wrong path and reason "This compiler does so-and-so, now I know how to better protect my current code", instead of the correct path of "Undefined means that I don't have the right to any expectation, thus I'll try and improve the portability of my algorithm".

Maybe I did not choose my words properly, I apologise.

There are no comments on this comment yet.