-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
LLVM failure "Calling a function with a bad signature!" when matching on &'static strs #11940
Comments
Compiling with a build of rust from yesterday (
|
@kballard, I was just editing the issue to add a note that I'm using Rust 0.9 because for some reason I can't build the compiler from master. |
I got bit by this today with a master build (
If you replace the static variable with its string literal things work again
|
This code:
crashes rustc with the following error message:
If I remove the first match arm, the program compiles correctly.
I was able to reproduce this only with &'static str constants. Other types of constants I have used seem to work fine.
This happens on Rust 0.9. I cannot check it on master version because I can't compile it for some reason.
The text was updated successfully, but these errors were encountered: