-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-androidOperating system: AndroidOperating system: Android
Description
The following test yields an ICE in trans
enum Foo {
IntVal(i32),
Int64Val(i64)
}
struct Bar {
i: i32,
v: Foo
}
static bar: Bar = Bar { i: 0, v: IntVal(0) };
fn main() {}
{ i32, { i32, i32, [8 x i8] } } { i32 0, { i32, i32, [8 x i8] } { i32 0, i32 0, [8 x i8] undef } }
{ i32, { i32, i64, [0 x i8] } } undef
error: internal compiler error: const expr(29: Bar{i: 0, v: IntVal(0),}) of type Bar has size 20 instead of 24
This error appears on arm target. and probably can appear on x86-32bit machine.
Metadata
Metadata
Assignees
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-androidOperating system: AndroidOperating system: Android
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
yichoi commentedon May 9, 2013
This problem occurs while compiling servo for ARM target
pcwalton commentedon May 23, 2013
cc @jld, I think this is your code?
june0cho commentedon May 23, 2013
Compiles fine on x86 32bit machine.
pcwalton commentedon May 31, 2013
Fixed.
yichoi commentedon Jun 1, 2013
Thanks!
Auto merge of rust-lang#6769 - Y-Nak:inconsistent-struct-constructor,…