[LLVMbugs] [Bug 2601] New: clang generates wrong AST/ code for compound assignment operators

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jul 26 21:47:29 PDT 2008


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

           Summary: clang generates wrong AST/code for compound assignment
                    operators
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Per subject; a couple of testcases:

unsigned char a,b; void c(void) {a <<= b;} void d(void) {a /= b;}

The issue is that the functions for computing the types skip unary promotions
for compound assignments.  I'm not sure what the cleanest way to solve this is,
though.


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