-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
@Frame crash the compiler when type error #6135
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
The minimal poc
const std = @import("std");
pub fn main() anyerror!void {
var pmap = std.AutoHashMap(u32, @Frame(main)).init(std.heap.page_allocator); // MAGIC
_ = try pmap.getOrPut(0); // MAGIC
random_error = it_is_impossible;
}I'm not sure if it is related to std.hash_map...
And it is actually happens for another function insteads of main function (yes, i know it is useless to capture main function's frame), but I choose this as minimal example
error:
Assertion failed at /deps/zig/src/analyze.cpp:524 in get_pointer_to_type_extra2. This is a bug in the Zig compiler.
Unable to dump stack trace: debug info stripped
zig version: 0.6.0+dad7af0b3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior