Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
leosarev
on May 21, 2021
|
parent
|
context
|
favorite
| on:
Undefined behavior in C is a reading error
If p is statically null, it should emit compile time error. If not, it should emit machine instruction to deference p.
tom_mellior
on May 21, 2021
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: