[LLVMbugs] [Bug 13299] New: makes error on post-increment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 9 01:43:45 PDT 2012


             Bug #: 13299
           Summary: makes error on post-increment
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ranlutk at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 8851
  --> http://llvm.org/bugs/attachment.cgi?id=8851
the program I used when find the bug.

The clang does a wrong on post increment. For the following program:

    int i = 0, a = 1;
    a = i++ + a + a++;
    printf("a=%d\n", a);
    printf("i=%d\n", i);

the clang prints: a=2  i=1
It has missed the post increment operation on 'a'.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list