[cfe-commits] est/SemaCXX/return-stack-addr.cpp test failure

Sebastian Redl sebastian.redl at getdesigned.at
Mon Oct 27 08:34:57 PDT 2008


Chris Lattner wrote:
> I'm guessing this is due to the reinterpret_cast work,
>   
On my system, I get these:

> Errors seen but not expected:
>   Line 97: static_cast from 'short *' to 'int *' is not allowed
The line tries a static_cast between unrelated pointers. This is 
illegal. (This message only appears in my local copy, since the 
static_cast work isn't checked in.)
>   Line 105: reinterpret_cast from 'double' to 'int *' is not allowed
The line tries a reinterpret_cast from a floating point type to a 
pointer. Also illegal.
> Warnings expected but not seen:
>   Line 31: reference to stack memory
>   Line 61: reference to stack memory
These have nothing to do with my work, as far as I can tell.

I'll check in a fix for the invalid casts.

Sebastian



More information about the cfe-commits mailing list