C error - multiple returns values and fixed arrays #22062
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.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Describe the bug
When returning multiple values, if one of those is a fixed size array, it seems to be the cause of a C error.
Reproduction Steps
with
v bug.v
Expected Behavior
No C error.
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.7 294f7e4.8210593
Environment details (OS name and version, etc.)
OS: linux, Linux version 6.7.11-200.fc39.x86_64 (mockbuild@bdb8d24f206645e2bda44c1cf867612d) (gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7), GNU ld version 2.40-14.fc39) #1 SMP PREEMPT_DYNAMIC Wed Mar 27 16:50:39 UTC 2024
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: