This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug#300945: romeo: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment



On Apr 2, 2005, at 4:57 PM, Andrew Pinski wrote:


On Apr 2, 2005, at 4:53 PM, Shaun Jackman wrote:

Can the GCC "C Extension" of "Generalized Lvalues" be enabled with a
switch in gcc-4.0?

No.

Note a better fix for the bug would be:



#define memUHeapSize(p,ver) \
*(ver>2 ? &((MemHeapHeaderPtr)p)->size : (ver>1 ? &((Mem2HeapHeaderPtr)p)->size : (&(Mem1HeapHeaderPtr)p)->size))



And then you get a lvalue.


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]