News for hackers. Stuff that matters.
Re:Undefined behavior in C is a reading error by leosarev on Friday May 21, 2021 @01:33PM (#27237148)
If p is statically null, it should emit compile time error. If not, it should emit machine instruction to deference p.
Re:Undefined behavior in C is a reading error by tom_mellior on Friday May 21, 2021 @03:42PM (#27238944)
In all of the examples above it will emit a machine instruction to dereference p. What your grandparent is complaining about is that it will later remove an "if (!p)" test.