Skip to content

ICE with cast in fixed-length vector #10618

Closed
@Ms2ger

Description

@Ms2ger

The following code:

fn main() {
    let x: [bool, ..1 as uint];
}

causes:

error: internal compiler error: node_id_to_type: no type for node `expr 1 as uint (id=16)`
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
task 'rustc' failed at 'explicit failure', /build/buildd/rust-nightly-201311220805~747213a~precise/src/libsyntax/diagnostic.rs:101
task '<main>' failed at 'explicit failure', /build/buildd/rust-nightly-201311220805~747213a~precise/src/librustc/lib.rs:396

in the latest nightly from https://launchpad.net/~hansjorg/+archive/rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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