zig icon indicating copy to clipboard operation
zig copied to clipboard

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

Results 2216 zig issues
Sort by recently updated
recently updated
newest added

``` $ cat atest.zig const std = @import("std"); pub fn main() void { var mtx = std.Thread.Mutex {}; _ = mtx.tryAcquire(); } ``` ``` $ zig build-exe --libc >> referenced...

bug

I've been hammering at a weird bug for a while and finally got a reduced case. See the code and output. I have a string slice being passed around and...

bug
upstream
miscompilation
backend-llvm

I believe that this is a bug: When using an external library with Zig, and the library is rebuilt or deleted, the changes are not reflected in the Zig binary...

bug

LLD specifies version 6 by default, i.e. Vista: https://github.com/llvm-mirror/lld/blob/8c742da1fd4f4acc78032a34021de228e3621ea5/COFF/Config.h#L205 This can however be overwritten by specifying the minor/major version after the subsystem name, like so: https://github.com/llvm-mirror/lld/blob/4fb31540fb812c46e3f8d2b6b7e4115ed0930693/COFF/DriverUtils.cpp#L112 Specifying the version yourself...

enhancement
os-windows
stage2

I'm currently trying to use libsoundio via zig and am experiencing problems with running libsoundio's ` soundio_flush_events` function (via alsa driver). The test code I'm using is sio_sine.c from libsoundio's...

bug
os-linux

Even invoking `zig test empty.zig` on an empty file takes forever while consuming 100% of 1 core. When opening the process with the Visual Studio debugger it shows one main...

bug
os-windows

I don't know how to get more information from the compiler for this one (extra logging). I'll describe the issue here and if you let me know how to add...

bug
os-windows

Broken by `assignment-result-loc`. ```zig const U = union { A: u32, B: u32, }; test "" { var a = U{ .A = 32 }; a = U{ .B =...

bug

if an async function is never called with async then a few optimizations can be made: - the return does not need to be atomic - it can be assumed...

optimization
stage2

Unfortunately I haven't been able to produce a minimal test case yet, but the problem exists in [this branch](https://github.com/tgschultz/zig/tree/git_stdlib-interface_reform_3). Simply run `zig test rand.zig` and you should see the following...

bug