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

1.19.0 and nightly ICE: panicked at 'index out of bounds: the len is 0 but the index is 0', /checkout/src/librustc_metadata/creader.rs:1217:17 #43926

Closed
zhendongsu opened this issue Aug 17, 2017 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@zhendongsu
Copy link

$ rustc-nightly --version
rustc 1.21.0-nightly (f25c2283b 2017-08-15)
$ 
$ rustc-nightly tmp.rs
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.21.0-nightly (f25c2283b 2017-08-15) running on i686-unknown-linux-gnu

thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /checkout/src/librustc_metadata/creader.rs:1217:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.

$ 
$ cat tmp.rs
#[link(name="foo", cfg())] 
extern {}
$ 
@arielb1
Copy link
Contributor

arielb1 commented Aug 17, 2017

Quasi-duplicate of #42925.

@Mark-Simulacrum Mark-Simulacrum added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Aug 20, 2017
topecongiro added a commit to topecongiro/rust that referenced this issue Jan 12, 2018
@topecongiro
Copy link
Contributor

#42925 -> #43925.

kennytm added a commit to kennytm/rust that referenced this issue Jan 15, 2018
…hton

Avoid panicking when invalid argument is passed to cfg(..)

Closes rust-lang#43925.
Closes rust-lang#43926.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants