-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
Labels
I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone
Description
enum maybe_pointy {
none,
p(@pointy)
}
type pointy = {
mut a : maybe_pointy,
mut f : fn@()->(),
};
fn empty_pointy() -> @pointy {
ret @{
mut a : none,
mut f : fn@()->(){},
}
}
fn main()
{
let v : [mut @pointy] = [mut];
uint::range(0u, 2u) {|_i|
v += [mut empty_pointy()];
}
v[0].a = p(v[0]);
}
Gives me a crash or
Assertion failed: (box->ref_count >= 1), function box_body_td, file ../src/rt/rust_shape.h, line 703.
Once this is fixed I'll run my CC mini-fuzzer again ;)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.