[Bug c/54558] get wrong answer in {static int a; a = 4; a += (a++);}

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Wed Sep 12 15:20:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54558

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2012-09-12 15:20:11 UTC ---
Modifying an object twice between sequence points is undefined (use -Wall). 
See also <http://c-faq.com/expr/seqpoints.html>.



More information about the Gcc-bugs mailing list