Created
May 8, 2020 02:24
-
-
Save CurtisFenner/3048d048a225e232329575ba36bb8783 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// >zig version | |
// 0.6.0 | |
// >zig test src/crash.zig | |
// Unreachable at D:\a\1\s\src\ir.cpp:28528 in buf_write_value_bytes. This is a bug in the Zig compiler. | |
// Unable to dump stack trace: debug info stripped | |
const S = struct {}; | |
test "Crashes" { | |
const cc = &[_]type{ S, S }; | |
const init = cc[0..1]; | |
const dd = init ++ [_]type{S}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A slight variation got a slightly different assert message:
That version used a
const struct { field: type }
instead oftype
directly, which may or may not be the cause of the difference.