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
TypeInfo.StructField.field_type has type type, so it should be possible to pass it to @typeName. However this is not the case if a struct is declared with a field of type anytype.
You can reproduce the error with the following code:
The text was updated successfully, but these errors were encountered:
Vexu
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Jan 26, 2021
I ran the above program through GDB, and got this:
(gdb) bt
#0 0x000000000294ee5b in type_bare_name(ZigType*) ()#1 0x000000000297e913 in ir_analyze_instruction_base(IrAnalyze*, IrInstSrc*) ()#2 0x0000000002976a93 in ir_analyze(CodeGen*, IrExecutableSrc*, IrExecutableGen*, ZigType*, AstNode*, ZigValue*) ()#3 0x000000000293e57b in analyze_fn_body(CodeGen*, ZigFn*) ()#4 0x000000000293fae7 in semantic_analyze(CodeGen*) ()#5 0x00000000029043d0 in codegen_build_object(CodeGen*) ()#6 0x00000000028fc75e in zig_stage1_build_object ()#7 0x00000000025cc741 in Compilation.performAllTheWork ()#8 0x00007ffff7ffa670 in ?? ()#9 0x0000000000000000 in ?? ()
TypeInfo.StructField.field_type
has typetype
, so it should be possible to pass it to@typeName
. However this is not the case if a struct is declared with a field of typeanytype
.You can reproduce the error with the following code:
The text was updated successfully, but these errors were encountered: