-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-DSTsArea: Dynamically-sized types (DSTs)Area: Dynamically-sized types (DSTs)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
foo.rs
:
#![crate_type = "lib"]
fn foo(a: [[u8], ..5]) {}
Compilation output:
> rustc --version=verbose
rustc 0.13.0-nightly (770378a31 2014-11-20 23:02:01 +0000)
binary: rustc
commit-hash: 770378a313a573776b16237a46b75bafa49072c1
commit-date: 2014-11-20 23:02:01 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly
> RUST_BACKTRACE=1 rustc -g foo.rs
error: internal compiler error: trying to take the sizing type of [[u8], ..5], an unsized type
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:180
stack backtrace:
1: 0x7f20abdc19c0 - rt::backtrace::imp::write::h38e72df4f68c2a0fB9s
2: 0x7f20abdc4b60 - failure::on_fail::hfed62fa5028805c5uwt
3: 0x7f20ac58ac80 - unwind::begin_unwind_inner::hd2440d158cff1c59nbd
4: 0x7f20a9c520d0 - unwind::begin_unwind::h17290044112077471032
5: 0x7f20a9c52800 - diagnostic::Handler::bug::h8fa91ae0c865994546F
6: 0x7f20aac633b0 - session::Session::bug::h05a03c91b32e6800Kv1
7: 0x7f20ac943230 - trans::type_of::sizing_type_of::h3534ab6bd94e52d0qmp
8: 0x7f20ac9532a0 - trans::datum::Datum<'tcx, K>::shallow_copy_raw::h16566536734899422380
9: 0x7f20ac9e0530 - trans::_match::store_arg::h3d2ddccad4775a94Qdy
10: 0x7f20ac9e14b0 - trans::base::trans_closure::h427ba3d717d7f5ba7Au
11: 0x7f20ac922890 - trans::base::trans_fn::h63d2777387d1a1cfXMu
12: 0x7f20ac91f960 - trans::base::trans_item::h61310fa89585fcd9H8u
13: 0x7f20ac9ec290 - trans::base::trans_crate::h80c040a30f021e9016v
14: 0x7f20aca969f0 - driver::driver::phase_4_translate_to_llvm::h49b60a5096822567npS
15: 0x7f20aca83c70 - driver::driver::compile_input::h56e37c9f95bced56dWR
16: 0x7f20acb08560 - driver::run_compiler::hae38ed40c1a5e42bHUT
17: 0x7f20acb08450 - driver::run::closure.59803
18: 0x7f20ac915000 - task::TaskBuilder<S>::try_future::closure.39059
19: 0x7f20ac914df0 - task::TaskBuilder<S>::spawn_internal::closure.39030
20: 0x7f20ace28b10 - task::NativeSpawner.Spawner::spawn::closure.2471
21: 0x7f20ac5e34c0 - rust_try_inner
22: 0x7f20ac5e34b0 - rust_try
23: 0x7f20ac5885e0 - unwind::try::h13cddac141b4f78fIZc
24: 0x7f20ac588470 - task::Task::run::hafaf90f81703a435y5b
25: 0x7f20ace28850 - task::NativeSpawner.Spawner::spawn::closure.2397
26: 0x7f20ac589c90 - thread::thread_start::hda75e847cb45320fEqc
27: 0x7f20a6e3afe0 - start_thread
28: 0x7f20ac250819 - __clone
29: 0x0 - <unknown>
This only happens when -g
is specified, and is possibly related to #18866.
Metadata
Metadata
Assignees
Labels
A-DSTsArea: Dynamically-sized types (DSTs)Area: Dynamically-sized types (DSTs)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️