c/6409: C comma operator: wrong behavior

jsm28@gcc.gnu.org jsm28@gcc.gnu.org
Mon Apr 22 10:16:00 GMT 2002


Synopsis: C comma operator: wrong behavior

State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Mon Apr 22 10:16:11 2002
State-Changed-Why:
    Sequence points define a partial ordering, not a total
    ordering.  There is no ordering in the example between
    (val=11) and any part of the other argument of +.  Both
    arguments of the comma operator conflict with (val=11),
    causing undefined behavior if this code is ever executed
    (so the compiler can make deductions on the basis that
    it never will be executed).

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6409



More information about the Gcc-prs mailing list