[LLVMbugs] [Bug 2100] New: Sema doesn't merge array definitions

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 26 11:17:05 PST 2008


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

           Summary: Sema doesn't merge array definitions
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org
                CC: llvmbugs at cs.uiuc.edu, sharparrow1 at yahoo.com,
                    snaroff at apple.com, andersca at mac.com


Codegen crashes on this:
static int a[10];
static int a[] = { 1, 2, 3 };

because sema is saying the type of the second 'a' is int[3] instead of int[10].
 Apparently sema should merge the previous int[10] into the array type before
analyzing the initializer.


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