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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs