-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Zig Version
0.14.0-dev.591+1c35e73b6
Steps to Reproduce and Observed Behavior
compile the project with the latest zig version.
https://github.com/andrewrk/poop/
cd poop
zig build.
it errors out with
std/os/linux.zig:7178:26: error: expected type 'os.linux.clockid_t', found 'comptime_int'
clockid: clockid_t = 0,
^
std/os/linux.zig:4058:23: note: enum declared here
pub const clockid_t = enum(u32) {
^~~~
Changing clockid:clockid_t=0 to clockid:clockid_t=.REALTIME fixes this.
Expected Behavior
Expected the program to compile and run.
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.