-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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: translating unsupported cast: fn() -> u64 (cast_pointer) -> f32 (cast_float) #15355
Labels
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Comments
Triage: same ICE |
This was referenced Feb 1, 2015
Closed
This is now rejected: test.rs:4:13: 4:21 error: illegal cast; cast through an integer first: `fn() -> u64 {f}` as `f64`
test.rs:4 let n = f as f64; However: fn f() -> u64 { 0 }
fn main() {
let n = f as u64 as f64;
} now segfaults at compile-time:
|
FWIW, the error message is also misleading: it should suggest casting through |
ghost
added
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
and removed
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Mar 4, 2015
This is now fixed. It suggests casting through |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Code:
Error with backtrace:
The text was updated successfully, but these errors were encountered: