From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uros Bizjak To: gcc@gcc.gnu.org Subject: Is this a gcc bug? Date: Thu, 11 Jan 2001 02:11:00 -0000 Message-id: X-SW-Source: 2001-01/msg00700.html Hello! This code produces a strange result on Solaris 2.5.1 with gcc 2.8.1: --cut here-- #include int main() { int x = 0; int y = 5; int z = 15; printf ("%i, %i, %i, %i\n", x, x += y, x += 2, x += z); return 0; } --cut here-- It displays "22, 5, 7, 22". I would expect the result to be "0, 5, 7, 22". Uros.