[LLVMbugs] [Bug 156] NEW: [llvm-gcc] Constant initializer translation is broken

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Tue Nov 25 18:10:47 PST 2003


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

           Summary: [llvm-gcc] Constant initializer translation is broken
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: sabre at nondot.org
        ReportedBy: brukman+bugs at uiuc.edu


Test case comes from same source as bug 155:

% cat it.i

struct task_struct {
 char comm[16];
};
union task_union {
 struct task_struct task;
 unsigned long stack[2048*sizeof(long)/sizeof(long)];
};
union task_union init_task_union = { { comm: "swapper" } };

% llvm-gcc it.i

cc1: ../../gcc-3.4/gcc/llvm-expand.c:3186: ExpandConstantInto: Assertion
`Val->VTy == ConstantAggregate && "Constant initializer translation is broken!"'
failed.
it.i:8: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.cs.uiuc.edu> for instructions.



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