You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions such as zig_make_big and zig_lo_big are being emitted. These functions aren't, and as far as I can tell shouldn't be, defined in zig.h. Consequently, when this code is run using zig run test.zig -ofmt=c, it produces a load of errors, and doesn't run.
Expected Behavior
It looks like the issue is not that zig_make_big and zig_lo_big are undefined, it is that the c-backend is emitting these calls when it shouldn't be. The expected behaviour is obviously for this code to run without error.
The text was updated successfully, but these errors were encountered:
bnuuydev
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Mar 15, 2025
Zig Version
0.15.0-dev.62+ea57fb55e
Steps to Reproduce and Observed Behavior
The C backend can be made to emit undeclared functions for the
big
type. This example shows this behaviour:Functions such as
zig_make_big
andzig_lo_big
are being emitted. These functions aren't, and as far as I can tell shouldn't be, defined inzig.h
. Consequently, when this code is run usingzig run test.zig -ofmt=c
, it produces a load of errors, and doesn't run.Expected Behavior
It looks like the issue is not that
zig_make_big
andzig_lo_big
are undefined, it is that the c-backend is emitting these calls when it shouldn't be. The expected behaviour is obviously for this code to run without error.The text was updated successfully, but these errors were encountered: