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

LLVM assertion with out-of-bounds indexing in a constant #23291

Closed
reem opened this issue Mar 11, 2015 · 0 comments · Fixed by #23294
Closed

LLVM assertion with out-of-bounds indexing in a constant #23291

reem opened this issue Mar 11, 2015 · 0 comments · Fixed by #23294
Assignees
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@reem
Copy link
Contributor

reem commented Mar 11, 2015

Reproduce: http://is.gd/rk75YC

Inlined:

const FOO: [u32; 3] = [1, 2, 3];
const BAR: u32 = FOO[5];

fn main() { let _ = BAR; }

Error:

ustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Constants.cpp:2189: static llvm::Constant* llvm::ConstantExpr::getExtractValue(llvm::Constant*, llvm::ArrayRef<unsigned int>, llvm::Type*): Assertion `ReqTy && "extractvalue indices invalid!"' failed.
Aborted (core dumped)
playpen: application terminated with error code 134
@jdm jdm added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 11, 2015
@dotdash dotdash self-assigned this Mar 11, 2015
dotdash added a commit to dotdash/rust that referenced this issue Mar 11, 2015
Manishearth added a commit to Manishearth/rust that referenced this issue Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants