Skip to content

ICE with codegen-units=0 #32191

Closed
Closed

Description

@tomaka

Invoking Rustc with rustc -C codegen-units=0 foo.rs triggers an ICE:

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/m
aster/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0
', ../src/libcollections\vec.rs:1179
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Probably easy to fix.

Activity

  1. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    on Mar 11, 2016
  2. added a commit that references this issue on Mar 12, 2016
    8e3ccd9
  3. Manishearth commented on Mar 12, 2016

    @Manishearth
    Member

    The actual ICE is from SharedCrateContext assuming that local_ccxs contains something. But it should always contain something, best to catch this early when constructing options.

  4. added a commit that references this issue on Mar 13, 2016
    d7f7ab9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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

      No branches or pull requests

      Issue actions