Skip to content

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

Closed
@reem

Description

@reem
Contributor

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

Activity

added
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
on Mar 11, 2015
self-assigned this
on Mar 11, 2015
added a commit that references this issue on Mar 11, 2015
de67c3a
added a commit that references this issue on Mar 12, 2015

Rollup merge of rust-lang#23294 - dotdash:coob, r=alexcrichton

2c251fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @jdm@dotdash@reem

    Issue actions

      LLVM assertion with out-of-bounds indexing in a constant · Issue #23291 · rust-lang/rust