Results 5 comments of Dom Williams
trafficstars

Have you tried running it through valgrind with memcheck? It will tell you if you overwrite some memory at an earlier point in your code, which could be causing undefined...

Nothing currently, I was just looking through the API to assess it for my needs. It's very minor though as it's just an optimisation hint

Forgot to tag the commit but relevant: 5fa08dcdcd0b4acd2013747ddc7a9d889bfe08e4

Another example: ```zig test "bug" { const array: [8:0]u8 = undefined; _ = @import("std").mem.span(array); } ``` ``` $ zig test bug.zig /home/dom/.compiled/zig/zig-linux-x86_64-0.10.0/lib/std/mem.zig:644:17: error: invalid type given to std.mem.Span else =>...

It's broken again, showing 0 lines :crying_cat_face: