[LLVMbugs] [Bug 2039] New: clang doesn't propagate qualifiers for arrays correctly

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 15 01:33:43 PST 2008


           Summary: clang doesn't propagate qualifiers for arrays correctly
           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


void a() {typedef int a[5]; typedef const a b; b r; r[0]=10;}

r's type is equivalent to "const int[5]", so the assignment should be rejected.

Not sure where exactly the bug is... maybe b is ending up with the wrong type? 
I need to think about it a bit more. This construct is kind of messy.

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