This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: statement expressions and extended asm bug?
Segher Boessenkool wrote:
> >> 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.
>
> Erm. Well of course you return 0 in any case, so evaluation order
> doesn't change the meaning of this example. But it's invalid
> code anyway, now that I took a second look at it ;-)
Oh, typo :) It should say "static inline int".
-- Jamie