On 08/26/2016 05:54 PM, Tobias Hunger wrote:
>> If zero is a
>> valid address in some environment, then it's the compiler's job to
>> ensure that the null pointer maps to something else at runtime.
> 
> I highly doubt that: 0 is a valid address, so the compiler can not
> just go ahead and map it elsewhere as it pleases.

Zero might be a valid address at runtime, but that has nothing to do
with zero (NULL, nullptr) as the value of a pointer; that's the whole
point. The resulting run time bit pattern is at the compiler's discretion.


Christian

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to