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

Integral type inference is busted for chars #3477

Closed
brson opened this issue Sep 13, 2012 · 1 comment
Closed

Integral type inference is busted for chars #3477

brson opened this issue Sep 13, 2012 · 1 comment
Labels
A-type-system Area: Type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@brson
Copy link
Contributor

brson commented Sep 13, 2012

let p: char = 100;
error: internal compiler error: char type passed to convert_integral_ty_to_int_ty_set()

Inferring an integer to a char is pretty sneaky, so this should probably be an error.

catamorphism added a commit to catamorphism/rust that referenced this issue Dec 22, 2012
For example, in let x: char = 42; This was an ICE and is now a
proper type error, as per rust-lang#3477
@ghost ghost assigned catamorphism Dec 23, 2012
@catamorphism
Copy link
Contributor

Fixed in a75c0b3

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 20, 2024
no_std works on Windows now

Since we now properly support the magic linker section for TLS dtors, the no_std test works on Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants