-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Internal Compiler Error when extracting overflowing bit-shift constant into constant local #96944
Comments
This also ICEs on beta on the playground. @rustbot label regression-from-stable-to-beta |
searched nightlies: from nightly-2022-03-01 to nightly-2022-04-23 bisected with cargo-bisect-rustc v0.6.3Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --test-dir=. --start=2022-03-01 --end=2022-04-23 --regress ice |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
It seems that this is fixed on
and it error'd out on me with:
Just thought I'd mention that, I think this can be closed, but I couldn't say when or how it was fixed. |
Via godbolt I can't find any stable Rust release where this fails. If it ICEd on beta that means an ICE fix must have been backported? @workingjubilee you marked this as regression-from-stable-to-stable, was that an automatic process or did you (or someone else) actually ever see this ICE on stable Rust? |
Oh wait, I didn't realize that the code posted in the OP is code that works, and one needs to adjust the code to generate an ICE. That is confusing. Sorry for the noise, it does reproduce on 1.64.0 but not 1.65.0. |
Changing the commented out snippet to the uncommented one caused a ICE when building on nightly
1.62.0
.EDIT:
Moving the integer cast to before the shift fixes the ICE. (
halves[0] as $int << HALF_SIZE
)Code
Meta
rustc --version --verbose
:rustc +stable --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: