C error when compiling code #21519
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
C error is produced when trying to compile/run the code from this repo with
v run client/
.Reproduction Steps
I usually try to narrow down the code to as small as possible before posting a bug here, but I can't seem to figure out where in the V code this is being caused. It has something to do with the anonymous functions in
struct MenuItem
inclient/menu.v
. This line is where the C error is produced, but I'm unable to replicate it without the whole repository.The generated C code causing the issue:
Expected Behavior
Expected the code to compile. It used to do so, but I haven't touched it in 9 months, so I guess some update to V has caused it to break.
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.5 25777bd.eeaf8d9
Environment details (OS name and version, etc.)
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: