[cfe-dev] warnings in clang

Florian Weimer fw at deneb.enyo.de
Sun Nov 16 01:42:44 PST 2008


* Argiris Kirtzidis:

> What's the difference with
>
>    D.ReadUIntPtr(reinterpret_cast<uintptr_t&>(MDC->SemanticDC), 
> SemaDCPtrID);
>
> The type-punned pointer is never dereferenced either.

You write an object of pointer type as an uintptr_t, which is not
allowed.  Read access would be fine, though.



More information about the cfe-dev mailing list