Skip to content

ICE with invalid syntax #5500

Closed
Closed
@thestinger

Description

@thestinger

(updated test case for bug)

The following test inputs:

fn main() { &fail!() }

or, more elaborately:

struct TrieMapIterator<'self> {
    priv node: &'self uint
}

fn main() {
    let a = 5;
    let _iter = TrieMapIterator{node: &a};
    _iter.node = &
    fail!()
}

yields the ICE failure:

/tmp/issue5500.rs:8:17: 10:1 error: internal compiler error: ty_region() invoked on in appropriate ty: &ty_bot
/tmp/issue5500.rs:8     _iter.node = &
/tmp/issue5500.rs:9     fail!()
/tmp/issue5500.rs:10 }

(original bug test case follows)

struct TrieMapIterator {
    priv node: &'self uint
}

fn main() {
    let a = 5;
    let iter = TrieMapIterator{node: &a};
    iter.node = &
    fail!()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemI-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