-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
This successfully compiles, even though inner is a &Foo.
use std::sync::TaskPool;
struct Foo {
p: TaskPool,
q: uint
}
impl Foo {
fn f(&self) {
let inner = self.clone();
self.p.execute(proc() {
println!("{}", inner.q);
});
}
}
fn main() {}For a more real example, see sfackler/r2d2@d864a78. It'll cause tests to segfault ~50% of the time.
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.