Re:Null Pointer Dereferencing Causes Undefined Behavior
by comex on Monday April 20, 2015 @05:28PM
(#9410981)
The constant 0 has to convert to NULL, but nonconstant zeroes don't, and NULL doesn't have to be 0 when converted back to an integer. This would break code like the example offsetof implementation.
See also http://stackoverflow.com/questions/2597142/when-was-the-null...