Cannot swap maps, neither with clone(), nor with move() #20012
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
Reproduction Steps
just compile the file
Expected Behavior
compilation error or support the feature
Current Behavior
/tmp/v_1000/bug.16467831999111614190.tmp.c:12656: warning: implicit declaration of function 'Map_int_bool_move'
/tmp/v_1000/bug.16467831999111614190.tmp.c:12656: error: cannot convert 'int' to 'struct map'
builder error:
...
Possible Solution
Handle coherently swapping of maps and document selected choice
Additional Information/Context
No response
V version
V 0.4.3 cd337e2
Environment details (OS name and version, etc.)
V full version: V 0.4.3 cd337e2
OS: linux, Linux Mint 21.2
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz
getwd: /home/gio/lelle/ex
vexe: /home/gio/lelle/v/v
vexe mtime: 2023-11-11 13:42:45
vroot: OK, value: /home/gio/lelle/v
VMODULES: OK, value: /home/gio/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: Error: sh: 1: git: not found
Git vroot status: Error: sh: 1: git: not found
.git/config present: false
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
thirdparty/tcc: N/A
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: