Skip to content

[llvm-gcc] Constant initializer translation is broken #528

@llvmbot

Description

@llvmbot
Bugzilla Link 156
Resolution DUPLICATE
Resolved on Feb 22, 2010 12:44
Version 1.0
OS All
Depends On llvm/llvm-bugzilla-archive#162
Blocks #509 llvm/llvm-bugzilla-archive#269 llvm/llvm-bugzilla-archive#285
Reporter LLVM Bugzilla Contributor
CC @markus-oberhumer

Extended Description

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.

Metadata

Metadata

Assignees

Labels

duplicateResolved as duplicate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions