[cfe-dev] Clang::SemaCXX/reinterpret-cast.cpp failing

Sean Hunt rideau3 at gmail.com
Sun Nov 22 09:44:58 PST 2009


Ahmed Charles wrote:
> Noticed your checkin, but it fails with this error:
> 
> error: 'error' diagnostics seen but not expected:
>   Line 25: cast from pointer to smaller type 'intptr_t' (aka 'int') 
> loses information
>   Line 29: cast from pointer to smaller type 'intptr_t' (aka 'int') 
> loses information
> 14 diagnostics generated.

Hmm - that's smells fishy. Is this a 64-bit system? If so, that probably 
indicates a problem with the definition of intptr_t; it should always be 
at least as wide as the platform's pointer.

Sean



More information about the cfe-dev mailing list