-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding self parameter to trait causes code to segfault #4850
Labels
A-codegen
Area: Code generation
A-trait-system
Area: Trait system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Comments
ghost
assigned catamorphism
Feb 20, 2013
reproduced on 2013-03-20, seems imporant-ish |
Doesn't fail if I change |
#4355 is possibly related |
This was referenced Mar 25, 2013
dotdash
added a commit
to dotdash/rust
that referenced
this issue
Jun 2, 2013
For types that are passed by value, we can't just cast the value to a pointer, but have to use an alloca and copy the value there. This handling is already present for all other arguments, but was missing for "self". Fixes rust-lang#6682, rust-lang#4850 and rust-lang#4878
This is fixed on master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-codegen
Area: Code generation
A-trait-system
Area: Trait system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
The following snippet segfaults when run. Removing the "self" parameters to thingie makes it not segfault, but makes rustc tell me that form is deprecated.
The text was updated successfully, but these errors were encountered: