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 Version**: 0.10.0-dev.3313+cff5d9c80 I was experimenting with how Zig generates code with oddly sized integers with regards to shifting instructions and found a case where I think it is generating...

enhancement
contributor friendly
optimization
stage2
backend-llvm

### Zig Version 0.10.0-dev.871+bb05a8a08 ### Steps to Reproduce run this: ``` echo "int add(int a,int b){return a+b;}" > main.c zig cc main.c -target wasm32-freestanding-none -nostdlib -o binary.wasm -Wl,--no-entry ``` ###...

arch-wasm32
zig cc
error message

This change provides a basic implementation of #2349 for stage2. There's still quite a lot of work before this logic is as complete as [what's in Clang](https://github.com/llvm/llvm-project/blob/b3645353041818f61e2580635409ddb81ff5a272/clang/lib/CodeGen/CGStmt.cpp#L2304-L2795), especially considering that...

### Zig Version 0.10.0-dev.3369+fdaf9c40d This bug is not present in version 0.9.1. ### Steps to Reproduce ```zig const std = @import("std"); const StrangeStruct = struct { name: ?[]u8 = null,...

bug
stage1

This is a best-effort implementation since my understanding of the current accepted semantics for packed structs is a bit hazy and none of the proposals list all the allowed types.

Reproduction: First, revert 1b1c70ce381cc3c76517c846eafcd3425a40ce9c. ``` $ stage3/bin/zig build test-cases -Denable-llvm compiler [669/1112] llvm/shift_right_plus_left (llvm, x86_64-linux) [2/2] update [2/3] ... panic: attempt to unwrap error: GenericPoison /home/andy/dev/zig/src/type.zig:31:23: 0x30257b4 in zigTypeTagOrPoison (test)...

bug
stage2
regression

### Zig Version 0.10.0-dev.3028+337147068 ### Steps to Reproduce Hit this one on https://github.com/ziglang/zig/issues/11168 and realized it's a more general problem for libraries compiled with Zig. ```c++ // foo.cpp #include std::error_condition...

bug
enhancement
stage2

### Zig Version 0.10.0-dev.3361+c650ccfca ### Steps to Reproduce Run the following with `zig test -fno-stage1 shl.zig` ```zig test { var x: u5 = 1; _ = @shlExact(12345, x); _ =...

bug
stage2

It's rare that I need to see the command that `zig build` failed on. I propose removing `--prominent-compile-errors`, which hides this command to make errors easier to read, and replacing...

proposal
zig build system

### Zig Version 0.10.0-dev.2103+ac1aaec9c ### Steps to Reproduce Consider this program: ```zig const std = @import("std"); const debug = std.debug; pub fn main() void { var array: [0]u8 = [_]u8{};...

bug
standard library