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
What did you do? ./v -g -o vdbg cmd/v && ./vdbg gen3.v && E:\2025\v\v_test\gen3.exe
modulemainstructAnyStruct[T] {
val T
}
fndecode_struct[T]() T {
muttyp:= T{}
$for field in T.fields {
typ.$(field.name) =decode_field(typ.$(field.name))
}
return typ
}
fndecode_field[T](_ T) T {
mutfield:= T{}
return field
}
typeAny=int|string| []Any
fnmain() {
decode_struct[AnyStruct[Any]]()
decode_struct[AnyStruct[[]Any]]()
}
What did you see?
================== C compilation error (from tcc): ==============
cc: d:/v/v/thirdparty/tcc/include/winapi/synchapi.h:167: warning: CreateMutex redefined
cc: C:/Users/Administrator/AppData/Local/Temp/v_0/gen3.01K2VEMZPDRG4YCJRCRAX0AK9J.tmp.c:5269: error: cannot convert 'struct main__Any' to 'void *'
...
cc: C:/Users/Administrator/AppData/Local/Temp/v_0/gen3.01K2VEMZPDRG4YCJRCRAX0AK9J.tmp.c:5269: error: cannot convert 'struct main__Any' to 'void *'
(note: the original output was 8 lines long; it was truncated to its first 2 lines + the last line)
=================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
What did you expect to see?
complied success
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
V version: V 0.4.11 4f8a3da, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg gen3.v && E:\2025\v\v_test\gen3.exeWhat did you see?
What did you expect to see?
complied success
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.