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
mutbp:= []u8{len:999998 }
for id, variable in buf4 {
ifid==999999 {
break
} elseif id >=1 {
bp[id] = variable
}
}
Current Behavior
==================
/tmp/v_1000/discardable_array_benchmark.9164571563412437262.tmp.c: In function‘main__name_T_Array_fixed_u8_1000000’:
/tmp/v_1000/discardable_array_benchmark.9164571563412437262.tmp.c:12669:58: error: incompatible typefor argument 1 of ‘array_clone_static_to_depth_noscan’
12669 | Array_u8 bp = array_clone_static_to_depth_noscan(buf4, 1, 999999), 0);| ^~~~
||| u8 (*)[1000000] {aka unsigned char (*)[1000000]}
/tmp/v_1000/discardable_array_benchmark.9164571563412437262.tmp.c:6648:64: note: expected ‘array’ but argument is of type ‘u8 (*)[1000000]’ {aka ‘unsigned char (*)[1000000]’}
6648 | VV_LOCAL_SYMBOL array array_clone_static_to_depth_noscan(array a, int depth) {
|~~~~~~^
/tmp/v_1000/discardable_array_benchmark.9164571563412437262.tmp.c:12669:23: error: too many arguments to function‘array_clone_static_to_depth_noscan’
12669 | Array_u8 bp = array_clone_static_to_depth_noscan(buf4, 1, 999999), 0);| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error. This should never happen.
This is a compiler bug, please report it using `v bug file.v`.
https://github.com/vlang/v/issues/new/choose
You can also use #help on Discord: https://discord.gg/vlang
Describe the bug
mut bp := buf4[1..999999]
where buf4 is a fixed array, break everything.Reproduction Steps
Expected Behavior
not cgen error, print a really big string,
make
mut bp := buf4[1..999999]
act likeCurrent Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.3 a017b53
Environment details (OS name and version, etc.)
Ubuntu
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: