[LLVMbugs] [Bug 3744] New: Field Idx out of range!
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Mar 6 16:41:50 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3744
Summary: Field Idx out of range!
Product: new-bugs
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: wendling at apple.com
CC: llvmbugs at cs.uiuc.edu
This code is causing problems:
$ cat t2.i
struct Empty {};
struct Union {
union {
int zero_arr[0];
} contents;
};
static inline void Foo(struct Union *u) {
int *array = u->contents.zero_arr;
}
static void Bar(struct Union *u) {
Foo(u);
}
$ llvm-gcc -c t2.i
Assertion failed: (MemberIndex < StructTy->getNumContainedTypes() && "Field Idx
out of range!"), function EmitLV_COMPONENT_REF, file
../../llvm-gcc.src/gcc/llvm-convert.cpp, line 5993.
t2.i: In function ‘Foo’:
t2.i:7: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list