This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: lvalue casting
- From: John Love-Jensen <eljay at adobe dot com>
- To: Yuri Karlsbrun <yuri_karlsbrun at yahoo dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Fri, 30 Sep 2005 06:28:35 -0500
- Subject: Re: lvalue casting
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