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
4.4.32-67-g0e7f19f2 (64604 commit(s) behind V master)
.git/config present
false
cc version
Apple clang version 17.0.0 (clang-1700.0.13.3)
gcc version
Apple clang version 17.0.0 (clang-1700.0.13.3)
clang version
Homebrew clang version 20.1.3
tcc version
N/A
tcc git status
N/A
emcc version
N/A
glibc version
N/A
What did you do? ./v -g -o vdbg cmd/v && ./vdbg main.v && /Users/xachey/Desktop/vlang/main
importmath { sqrt }
importtimefnget_hypot(a f64, b f64) f64 { // ordinary function returning a value
time.sleep(100* time.millisecond)
c:=sqrt(a * a + b * b)
return c
}
fnmain() {
start:= time.now()
mutarr:=&[]thread f64{}
for num in1..1000{
g:=goget_hypot(num,num)
arr << g
}
result:= arr.wait()
end:= time.now()
println("time duration: ${end-start}")
println(result[1..10])
}
What did you see?
================== C compilation error (from cc): ==============
cc: /tmp/v_501/main.01JSS1RDRG92H9M60ZTQ9ZNWSG.tmp.c:7561:47: error: passing 'Array___v_thread_f64 *' (aka 'struct array *') to parameter of incompatible type 'Array___v_thread_f64' (aka 'struct array'); dereference with *
cc: 7561 | Array_f64 result = Array___v_thread_f64_wait(arr);
cc: | ^~~
cc: | *
cc: /tmp/v_501/main.01JSS1RDRG92H9M60ZTQ9ZNWSG.tmp.c:2244:58: note: passing argument to parameter 'a' here
cc: 2244 | Array_f64 Array___v_thread_f64_wait(Array___v_thread_f64 a) {
cc: | ^
cc: 1 error generated.
================================================================
(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?
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.10, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg main.v && /Users/xachey/Desktop/vlang/mainWhat did you see?
What did you expect to see?
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.