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

compiler crash trying to cast a function to a pointer #777

andrewrk opened this Issue Feb 16, 2018 · 0 comments


None yet
1 participant

andrewrk commented Feb 16, 2018

fn foo() void {


export fn entry() &u8 {
    return @ptrCast(&u8, foo);

@andrewrk andrewrk added the bug label Feb 16, 2018

@andrewrk andrewrk added this to the 0.2.0 milestone Feb 16, 2018

andrewrk added a commit that referenced this issue Feb 16, 2018

add an assert to catch #777
asserting is better than segfaulting

@andrewrk andrewrk closed this in 7f7823e Mar 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment