Zig Version
0.12.0-dev.601+f4c884617
Steps to Reproduce and Observed Behavior
// zig build-exe -target x86_64-windows -lcconstc=@cImport(@cInclude("audioclient.h"));
pubfnmain() !void {
varx: c.TYPEDESC=undefined;
_=x;
}cimport.zig:43579:34: error: union '...cimport.union_unnamed_290' depends on itself
const union_unnamed_290 = extern union {
~~~~~~~^~~~~
cimport.zig:43585:5: note: while checking this field
unnamed_0: union_unnamed_290 = @import("std").mem.zeroes(union_unnamed_290),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```
mingw header:
typedefstructtagTYPEDESC {
__C89_NAMELESSunion {
structtagTYPEDESC*lptdesc;
structtagARRAYDESC*lpadesc;
HREFTYPEhreftype;
} __C89_NAMELESSUNIONNAME;
VARTYPEvt;
} TYPEDESC;cimport.zig:
constunion_unnamed_290=externunion {
lptdesc: [*c]struct_tagTYPEDESC,
lpadesc: [*c]struct_tagARRAYDESC,
hreftype: HREFTYPE,
};
pubconststruct_tagTYPEDESC=externstruct {
unnamed_0: union_unnamed_290=@import("std").mem.zeroes(union_unnamed_290),
vt: VARTYPE=@import("std").mem.zeroes(VARTYPE),
};
pubconstTYPEDESC=struct_tagTYPEDESC;Expected Behavior
Compiles successfully in 0.11.0
Zig Version
0.12.0-dev.601+f4c884617
Steps to Reproduce and Observed Behavior
mingw header:
cimport.zig:
Expected Behavior
Compiles successfully in 0.11.0