-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Zig Version
0.14.0-dev.2577+271452d22
Steps to Reproduce and Observed Behavior
Compile this program on linux x86-64:
const std = @import("std");
pub fn main() !void {
foo() catch |e| {
const str = @errorName(e);
std.debug.print("{s}\n", .{str});
};
}
fn foo() !void {
return error.OutOfMemory;
}running selfhosted
zig run main.zig -fno-llvm -fno-lldgives
fMemory
and running llvm backend gives
zig run main.zig
OutOfMemoryOn 0.13.0 it works correctly so its regression
Expected Behavior
I expect output of first and second run to be the same (e.g. "OutOfMemory")
Metadata
Metadata
Assignees
Labels
backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior