Skip to content

bind crash #902

Closed
Closed
@jruderman

Description

@jruderman

Hit this crash while trying to type-parametrize another part of the fuzzer (check_variants_of_ast). I was able to work around it by sprinkling ampersands around the fuzzer.

type e = {node: uint};

fn nop(_e: e) {}

fn bind_nop(my_e: e) {
    bind nop(my_e);
}

fn for_first_T<T>(things: [T], fun: fn(T)) {
    fun(things[0]);
}

fn main() {
    for_first_T([{node: 0u}], bind_nop);
}

Stack trace:

#0  0x000023e9 in bind_nop ()
#1  0x00002594 in for_first_T ()
#2  0x000026e7 in main ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-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