Skip to content
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

ICE (assertion) on wrong lang-items signature #32861

Closed
pravic opened this issue Apr 9, 2016 · 2 comments
Closed

ICE (assertion) on wrong lang-items signature #32861

pravic opened this issue Apr 9, 2016 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@pravic
Copy link
Contributor

pravic commented Apr 9, 2016

If you specify the "custom-unwind-resume": true in target.json and use well-known (from guides/book)
#[lang = "eh_unwind_resume"] extern fn rust_eh_unwind_resume() {}, you can see the llvm assert "Calling a function with bad signature!" at src/llvm/lib/IR/Instructions.cpp:240.

Nightly rustc (all msvc/gnu/linux targets).

@nagisa nagisa added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Apr 11, 2016
@Mark-Simulacrum
Copy link
Member

Could someone provide a list of steps to follow to reproduce this? It's hard to tell exactly how to do this from the issue itself and I've been unable to come up with them based on ~10 minutes of utilizing Google.

@Mark-Simulacrum
Copy link
Member

Going to close this in favor of #9307 since it tracks the cause (lang items not being type checked).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants