-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
This DST code causes an llvm assertion failure during compilation. #19064
Comments
steveklabnik
added
A-DSTs
Area: Dynamically-sized types (DSTs)
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
labels
Jan 29, 2015
ghost
mentioned this issue
Apr 16, 2015
arielb1
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Jun 14, 2015
Still crashes in 1.2.0 |
eefriedman
added a commit
to eefriedman/rust
that referenced
this issue
Jul 15, 2015
The old code was not well structured, difficult to understand, and buggy. The new implementation is completely naive, so there may be a slight runtime performance loss. That said, adding optimizations on top of a clear and correct implementation seems easier than trying to fix the old mess. Fixes issue rust-lang#19064. Fixes issue rust-lang#26989. Fixes issue rust-lang#26251. Fixes issue rust-lang#18060. Fixes issue rust-lang#24875. Fixes issue rust-lang#23311. Fixes issue rust-lang#20046.
Closed
bltavares
pushed a commit
to bltavares/glacier
that referenced
this issue
Oct 24, 2015
Merged
Still happening in 1.7.0 nightly as of now. I believe I've managed to reduce it further to the following; changing
fn main() { if let Some(&ref _x) = Some::<&[()]>(&[]) {} } [master] > rustc -vV
rustc 1.7.0-nightly (110df043b 2015-12-13)
binary: rustc
commit-hash: 110df043bf585e94764e07700576200290709859
commit-date: 2015-12-13
host: i686-pc-windows-gnu
release: 1.7.0-nightly
[master] > rustc .\src\bin\day9asplode.rs
Assertion failed!
Program: C:\Users\drk\AppData\Local\.multirust\toolchains\nightly\bin\rustc.exe File: C:/bot/slave/nightly-dist-rustc-win-gnu-32/build/src/llvm/include/llvm/Support/Casting.h, Line 237
Expression: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information. |
Triage: Still an issue. |
Compiles fine with |
This no longer ICEs as of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to build this:
and I get this:
The text was updated successfully, but these errors were encountered: