Closed
Description
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