-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Compiler assertion failure when assigning to nullable frame variable #5604
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Found what looks like a compiler bug.
compiler_error.zig:
fn a() void {
suspend;
}
pub fn main() void {
var frame: ?@Frame(a) = async a();
}$ zig version
0.6.0+e7207bc26
$ zig run compiler_error.zig
when analyzing /home/adrusi/posh/src/compiler_error.zig:6:29 in compiler source at /deps/zig/src/codegen.cpp:1811: assertion failed. This is a bug in the Zig compiler.
Unable to dump stack trace: debug info stripped
zsh: abort ~/zig-linux-x86_64-0.6.0+e7207bc26/zig run src/compiler_error.zig
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior