[LLVMbugs] [Bug 431] NEW: statically allocated flexible array triggers assertion

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 26 13:23:34 PDT 2004


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

           Summary: statically allocated flexible array triggers assertion
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: alenhar2 at uiuc.edu


C99 style flexible arrays trigger :

cc1: ../../cfrontend/src/gcc/llvm-expand.c:3791:
llvm_expand_constructor_elements: Assertion `(FieldSizeTree != (tree) ((void
*)0)) && "Struct/Union member of unknown length!"' failed.

example source:

struct foo {
 int x;
 int v[];
} data = {0, {1,2,3} };
 
int main()
{
return data.v[1];
}



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