[LLVMbugs] [Bug 21966] New: error: fields must have a constant size: 'variable length array in structure' extension will never be supported

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 18 10:31:46 PST 2014


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

            Bug ID: 21966
           Summary: error: fields must have a constant size: 'variable
                    length array in structure' extension will never be
                    supported
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sushil.agarwal at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Ex 
#define SOME_MACRO (var1, other_param) \
    struct __attribute__((__packed__)) name_t {
         char array[var1];
         int i;
    }__tmp;
...

and caller is 
void foo(int var)
{
..
    SOME_MACRO(var, ..)

Causing 

 error: fields must have a constant size: 'variable length array in structure'
extension will never be supported

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141218/35f69a7e/attachment.html>


More information about the llvm-bugs mailing list