Skip to content

bind crash #902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jruderman opened this issue Sep 11, 2011 · 2 comments
Closed

bind crash #902

jruderman opened this issue Sep 11, 2011 · 2 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

Comments

@jruderman
Copy link
Contributor

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 ()
@marijnh
Copy link
Contributor

marijnh commented Sep 11, 2011

This is something I introduced when I removed the restriction that type params are always passed by alias. It'll be fixed when I land my everything-is-conceptually-by-alias patch (should be soon).

@marijnh
Copy link
Contributor

marijnh commented Sep 13, 2011

Alias revision has landed.

@marijnh marijnh closed this as completed Sep 13, 2011
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

2 participants