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 2035 zig issues
Sort by recently updated
recently updated
newest added

_zig cc -c_ handles only one file argument. gcc and clang both compile and generate object files for each respective file argument given. also note that _zig cc -c_ handles...

bug
enhancement
zig cc

`std.mem.zeroes(struct{handle: void})` Failed with the following error before: ``` /nix/store/l6v4359wc9xrxxmvvp3rynsb5s3d78xf-zig-0.9.1/lib/zig/std/mem.zig:270:42: error: missing field: 'handle' if (@sizeOf(T) == 0) return T{}; ^ ```

Extracted from #12220. ``` $ stage3/bin/zig build-exe empty.zig -target x86_64-freestanding-none -mcpu=x86_64+soft_float thread 427475 panic: Illegal instruction at address 0x5c6d154 ``` As pointed out in https://github.com/llvm/llvm-project/issues/56351#issuecomment-1173063759, `+x87` and `+soft_float` is a...

enhancement
contributor friendly
stage2

Currently when using switch statements with non-exhaustive enums you are able to use it in the following 2 ways as explained in the documentation: > A switch on a non-exhaustive...

proposal
accepted

fail when `zig cc -target i386-windows-gnu`

This issue is split from #287. Now that we have result location semantics, the following code does not introduce an intermediate value with a copy: ```zig const Point = struct...

proposal

```zig const xxx = struct { bar: u8, pub fn bar(self: *const xxx) void {} }; pub fn main() !void { var x: xxx = undefined; x.bar(); } ``` ```...

enhancement
stage2
error message

### Zig Version 0.10.0-dev.3313+cff5d9c80 (stage2) ### Steps to Reproduce Attempt to compile one of the following examples: ```zig var bytes: [1024]u8 = undefined; export const length = bytes.len; ``` ```zig...

bug
stage2

zig version **0.5.0+e491b2f5a** Small reproducible: ```zig const Foo = struct { bar: i32, // Mistake is that it should be *c_void // ZIG FAILS WITH: // Assertion failed at /deps/zig/src/analyze.cpp:605...

bug
stage1