News for hackers. Stuff that matters.
Re:Undefined behavior is often a thing for C programmers (2011) by fanf2 on Thursday September 03, 2020 @02:34PM (#24367194)
The rationale does not mention optimization as a reason for undefined behaviour https://www.lysator.liu.se/c/rat/a.html#1-6
Re:Undefined behavior is often a thing for C programmers (2011) by shultays on Friday September 04, 2020 @03:57AM (#24372756)
Eh, well but it is. Since most (all?) UB could be eliminated if you added more code. I don't see any other reason for stuff like making access to uninitialized memory UB for example.