ICE when promoting @[] to slice #2797

Closed
msullivan opened this Issue Jul 3, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

msullivan commented Jul 3, 2012

The following code fails with an ICE

fn foo(_x: &[int]) {}
fn main() {
    let x = @[1,2,3];
    foo(x);
}

The output:

nubs/box-borrow-ice.rs:4:8: 4:9 error: internal compiler error: aliased ptr with a non-none lp
nubs/box-borrow-ice.rs:4     foo(x);

@ghost ghost assigned nikomatsakis Jul 5, 2012

nikomatsakis added a commit that referenced this issue Jul 18, 2012

Contributor

nikomatsakis commented Jul 18, 2012

should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment