------- Comment #1 from jakub at gcc dot gnu dot org 2009-06-17 08:04 ------- That's undefined behavior, there is no sequence point between the the evaluation of foo (&n, n) and evaluation of n passed as the next argument. If foo (&n, n) is evaluated first, you will see 1 2 printed, if n is evaluated first, you see 1 1.
-- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40471