statement expressions and extended asm bug?
Segher Boessenkool
segher@kernel.crashing.org
Fri Mar 19 15:56:00 GMT 2004
On 19-mrt-04, at 14:53, Jamie Lokier wrote:
> Hans-Peter Nilsson wrote:
>> It's no stranger than "func (a++, a++)" being undefined.
>
> That's undefined. This isn't undefined:
>
> static inline void increment (int * ptr) { *ptr++; return 0; }
> func (increment (&a), increment (&a));
No, it is just as undefined. The compiler is free to call
either the "left" or the "right" increment() first.
Segher
More information about the Gcc
mailing list