-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Panic on constant index out of bounds in range expression #33287
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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: