Veikka Tuominen
Veikka Tuominen
```c #include int main(void) { static char* ptr = malloc(10); // error: initializer element is not a compile-time constant } ```
```c int foo(void) { const int a; a = 1; return a; } ``` Arocc output: ``` ./a.c:40:7: error: expression is not assignable a = 1; ^ 1 error generated....
### Zig Version 0.12.0-dev.1369+a09ba455c ### Zig Language Server Version 0.12.0-dev.228+aa9fc0c ### Steps to Reproduce ```zig @int() // Type F and complete @intFromBool @intF() ``` ### Expected Behavior ```zig @intFromBool() ```...
```zig // If I go to definition on `File` - const File = @import("path/to/File.zig"); // ZLS should search `File.zig` for a `@This()` assigned to the same name. const File =...
Salvaging the useful parts of #19347 Closes #12963
Discovered in #19347 ```zig export fn entry() void { comptime testFlagsInPackedUnionAtOffset(); } fn testFlagsInPackedUnionAtOffset() void { const FlagBits = packed union { base_flags: packed union { flags: packed struct(u4) {...
## Why? With #12044 compile error notes can now be printed more compactly enabling long, multi sentence errors to be broken down into the main error, the reason for the...
Closes #19942