-
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
Panic on constant index out of bounds in range expression #33287
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
apasel422
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Jun 17, 2016
This was fixed. With Rust 1.12.1 and later, this is now a warning, with no panic:
|
wesleywiser
added a commit
to wesleywiser/rust
that referenced
this issue
Apr 26, 2017
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 26, 2017
Add a regression test for ICE rust-lang#33287 Fixes rust-lang#33287
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 26, 2017
Add a regression test for ICE rust-lang#33287 Fixes rust-lang#33287
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Apr 26, 2017
Add a regression test for ICE rust-lang#33287 Fixes rust-lang#33287
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Apr 26, 2017
Add a regression test for ICE rust-lang#33287 Fixes rust-lang#33287
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
rustc
1.9.0-beta.1 panics when a constant index expression is out of bounds in a range expression.Minimal Code to Reproduce
Expected Behavior
Compilation failure and exit (without a panic).
rustc
1.8.0 catches this properly without panicking:Actual Behavior
rustc
1.9.0-beta.1 also catches the error but then immediately panics:Meta
rustc version
Backtrace
The text was updated successfully, but these errors were encountered: