[LLVMbugs] [Bug 4760] New: postfix doesn't get priority to prefix and unary maths

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Aug 23 20:53:01 PDT 2009


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

           Summary: postfix doesn't get priority to prefix and unary maths
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: zach at drayer.name
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3366)
 --> (http://llvm.org/bugs/attachment.cgi?id=3366)
Basic testcase that shows the bug

The C standard says that postfix should take place before unary plus or prefix
in the order of operations, however this doesn't happen with Clang.

In the attached test, Clang improperly outputs "21", while compiling with GCC
gives the proper "22".


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