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
V full version: V 0.4.7 18eee34.4ee948f
OS: windows, Microsoft Windows 11 Pro v22631 64-bit
Processor: 24 cpus, 64bit, little endian,
getwd: D:\vbug
vexe: C:\v\v.exe
vexe mtime: 2024-09-24 17:12:18
vroot: OK, value: C:\v
VMODULES: OK, value: C:\Users\info\.vmodules
VTMP: OK, value: C:\Users\info\AppData\Local\Temp\v_0
Git version: git version 2.42.0.windows.2
Git vroot status: weekly.2024.39-5-g4ee948fe-dirty
.git/config present: true
CC version: Error: 'cc' is not recognized as an internal or external command,
operable program or batch file.
thirdparty/tcc status: thirdparty-windows-amd64 b425ac82
What did you do? ./v -g -o vdbg cmd/v && ./vdbg src\main.v
modulemaininterfaceIGameObject {
mut:
name string
}
structGameObject implements IGameObject {
mut:
name string
}
structGame {
mut:
objects []IGameObject
}
fn (mut game Game) gc() {
for obj in game.objects {
game.objects.delete(obj)
}
game.objects.clear()
}
fnmain() {}
What did you expect to see?
no c compiler error
What did you see instead?
================== C compilation error (from tcc): ==============
cc: C:/Users/info/AppData/Local/Temp/v_0/main.01J8JMB0XJMWQ088W3RH9WNT80.tmp.c:7068: warning: implicit declaration of function 'tcc_backtrace'
cc: C:/Users/info/AppData/Local/Temp/v_0/main.01J8JMB0XJMWQ088W3RH9WNT80.tmp.c:13536: error: cannot convert 'struct main__IGameObject' to 'int'
... (the original output was 3 lines long, and was truncated to 2 lines)
=================================================================
(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 .
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.
The text was updated successfully, but these errors were encountered:
V doctor:
What did you do?
./v -g -o vdbg cmd/v && ./vdbg src\main.v
What did you expect to see?
no c compiler error
What did you see instead?
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.
The text was updated successfully, but these errors were encountered: