lvalue casting

John Love-Jensen eljay@adobe.com
Fri Sep 30 11:30:00 GMT 2005


Hi Yuri,

Maybe the -fnon-lvalue-assign flag will do what you need.

But I think you should change the code to be compliant.

(type)expr           ---becomes--->  *(type *)&expr
cond ? expr1 : expr2 ---becomes--->  *(cond ? &expr1 : &expr2)

HTH,
--Eljay



More information about the Gcc-help mailing list