[LLVMbugs] [Bug 11153] New: variable length array in structure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 17 03:04:26 PDT 2011


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

           Summary: variable length array in structure
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: xuzhongxing at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Though this bug seems will not be fixed, I still report it to say that
compiling Linux kernel need to fix it.

arch/x86/xen/mmu.c:1236:17: error: fields must have a constant size: 'variable
length array in structure' extension will never be supported
  unsigned long mask[(((num_processors) + (8 * sizeof(long)) - 1) / (8 *
sizeof(long)))];

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