[LLVMbugs] [Bug 654] NEW: [llvm-gcc] llvm-expand.c asserts on static initialization of struct with flexible array

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Nov 2 14:41:53 PST 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=654

           Summary: [llvm-gcc] llvm-expand.c asserts on static
                    initialization of struct with flexible array
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kharriman at greenplum.com


"Struct/Union member of unknown length!" assertion failure:

llvm-gcc -o llvmbug04.bc -c -save-temps llvmbug04.c
cc1: /home/vadve/criswell/rel15/cfrontend/src/gcc/llvm-expand.c:3936:
llvm_expand_constructor_elements: Assertion `(FieldSizeTree != (tree) ((void
*)0)) && "Struct/Union member of unknown length!"' failed.
llvmbug04.c:8: internal compiler error: Aborted

when compiling the following:

# 1 "llvmbug04.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "llvmbug04.c"

typedef struct T
{
    char *inplace;
    char chunk_data[];
} T;

static T s = {0, "                "};



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list