Skip to content
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

Comparing runtime function pointers hits assert in the compiler #1140

Closed
Hejsil opened this issue Jun 20, 2018 · 0 comments
Closed

Comparing runtime function pointers hits assert in the compiler #1140

Hejsil opened this issue Jun 20, 2018 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@Hejsil
Copy link
Sponsor Contributor

Hejsil commented Jun 20, 2018

const assert = @import("std").debug.assert;

fn aa() void {}

test "" {
    var a = aa;
    assert(a == a);
}
unreachable: zig/src/codegen.cpp:ir_render_bin_op:2259
[1]    4436 abort (core dumped)  zig test test.zig
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Jun 20, 2018
@andrewrk andrewrk added this to the 0.3.0 milestone Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants