[cfe-dev] type-punning warnings for CXXTypeidExpr::child_begin()/child_end()

Sebastian Redl sebastian.redl at getdesigned.at
Wed Dec 3 14:58:03 PST 2008


Ted Kremenek wrote:
>
> On Dec 3, 2008, at 2:40 PM, Sebastian Redl wrote:
>
>> My code, both of it. I suppose I can go with the union.
>
> I'm not certain that using a union will change anything.  I think 
> there will still be a type-punning issue, even if we manage to make 
> the warning go away.
No, there won't. The node uses this field either as a type or an 
expression, for the entire lifetime. I just need to be careful which I 
initially assign.

Sebastian



More information about the cfe-dev mailing list