[LLVMbugs] [Bug 1893] New: Incomplete array "int i[]; " should implicitly have one element

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 2 01:51:17 PST 2008


           Summary: Incomplete array "int i[];" should implicitly have one
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

The declaration:
int i[];

currently results in 
"@i = global [0 x i32] zeroinitializer"

It should result in an array with one element, per C99 section 6.9.2.  (It
should probably also warn, like gcc does.)

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