When producing zig2.c.obj on
** Visual Studio 2026 Developer Command Prompt v18.5.2
[vcvarsall.bat] Environment initialized for: 'x64'
error C2466: cannot allocate an array of constant size 0
on multiple occasions.
FAILED: [code=2] CMakeFiles/zig2.dir/zig2.c.obj
C:\PROGRA~1\MIB055~118円\COMMUN~1\VC\Tools\MSVC1450円~1.357\bin\Hostx64\x64\cl.exe /nologo -IC:\Users7743円l\Desktop\Giit\SRC\zig\stage1 -IC:\Users7743円l\Desktop\Giit\SRC\out-win\host\include /DWIN32 /D_WINDOWS /O2 /Ob2 /DNDEBUG -MD /Od /showIncludes /FoCMakeFiles\zig2.dir\zig2.c.obj /FdCMakeFiles\zig2.dir\ /FS -c C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c
cl : Command line warning D9025 : overriding '/O2' with '/Od'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(12953): error C2466: cannot allocate an array of constant size 0
...
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(72213): error C2466: cannot allocate an array of constant size 0
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(135660): warning C4273: 'free': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(89): note: see previous definition of 'free'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168891): warning C4273: 'malloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(101): note: see previous definition of 'malloc'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168897): warning C4273: 'realloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(126): note: see previous definition of 'realloc'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168900): warning C4028: formal parameter 1 different from declaration
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168900): warning C4273: '_msize': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(113): note: see previous definition of '_msize'
ninja: build stopped: subcommand failed.
When producing zig2.c.obj on
```
** Visual Studio 2026 Developer Command Prompt v18.5.2
[vcvarsall.bat] Environment initialized for: 'x64'
```
error C2466: cannot allocate an array of constant size 0
on multiple occasions.
```
FAILED: [code=2] CMakeFiles/zig2.dir/zig2.c.obj
C:\PROGRA~1\MIB055~118円\COMMUN~1\VC\Tools\MSVC1450円~1.357\bin\Hostx64\x64\cl.exe /nologo -IC:\Users7743円l\Desktop\Giit\SRC\zig\stage1 -IC:\Users7743円l\Desktop\Giit\SRC\out-win\host\include /DWIN32 /D_WINDOWS /O2 /Ob2 /DNDEBUG -MD /Od /showIncludes /FoCMakeFiles\zig2.dir\zig2.c.obj /FdCMakeFiles\zig2.dir\ /FS -c C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c
cl : Command line warning D9025 : overriding '/O2' with '/Od'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(12953): error C2466: cannot allocate an array of constant size 0
...
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(72213): error C2466: cannot allocate an array of constant size 0
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(135660): warning C4273: 'free': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(89): note: see previous definition of 'free'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168891): warning C4273: 'malloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(101): note: see previous definition of 'malloc'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168897): warning C4273: 'realloc': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(126): note: see previous definition of 'realloc'
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168900): warning C4028: formal parameter 1 different from declaration
C:\Users7743円l\Desktop\Giit\SRC\out-win\build-zig-host\zig2.c(168900): warning C4273: '_msize': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits10円\include10円.0.26100.0\ucrt\corecrt_malloc.h(113): note: see previous definition of '_msize'
ninja: build stopped: subcommand failed.
```