[LLVMbugs] [Bug 9261] New: clang: error: array initializer must be an initializer list or string literal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 03:42:12 PST 2011


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

           Summary: clang: error: array initializer must be an initializer
                    list or string literal
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 4068


drivers/scsi/fcoe/libfcoe.c:63:11: error: array initializer must be an
initializer list or string literal
static u8 fcoe_all_fcfs[ETH_ALEN] = FIP_ALL_FCF_MACS;
          ^

Testcase:
typedef unsigned char u8;
typedef unsigned char __u8;
static u8 fcoe_all_p2p[6] = ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 5 });

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