Zig: Dependency loop false positive with optional pointers

Created on 26 Feb 2020  路  3Comments  路  Source: ziglang/zig

const std = @import("std");

const S = struct {
    a: u32,
    b: Map,

    const Map = std.StringHashMap(?*S);
};
test "" {
    _ = S;
}
bug stage1

Most helpful comment

It seems this has been broken since before 0.5.0 was released. I think I was hitting some other bug causing me to think this was a recent regression.

All 3 comments

On the plus side, we're collecting some useful regression test cases for self-hosted

Previous issue for context: #4560

It seems this has been broken since before 0.5.0 was released. I think I was hitting some other bug causing me to think this was a recent regression.

Was this page helpful?
0 / 5 - 0 ratings