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

Ted Kremenek kremenek at apple.com
Wed Dec 3 15:45:34 PST 2008


On Dec 3, 2008, at 2:58 PM, Sebastian Redl <sebastian.redl at getdesigned.at 
 > wrote:

> 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.

Makes sense.



More information about the cfe-dev mailing list