Skip to content

"let f = @f;" causes iloop/irecurse #768

@jruderman

Description

@jruderman
fn main() {
    let f = @f;
    f();
}

Causes the compiler to iloop

fn main() {
    let f = @f;
}

Causes the compiler to output "Out of stack space, sorry"

Expected: "unresolved name: f" or "use before definition: f" or "cannot determine a type local variable: f".

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions