[LLVMbugs] [Bug 10633] New: Sequence point warning for assignment and assignment+op mix

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 10 04:23:19 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10633

           Summary: Sequence point warning for assignment and
                    assignment+op mix
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu


Consider the following input:

int x;

int f(void)
{
    x = x += 1;
    return 0;
}

This should give a warning for undefined behaviour, but clang doesn't currently
give one.

-- 
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