C error when initializing fixed-size array #22057
Labels
Bug
This tag is applied to issues which reports bugs.
Comptime
Features processed during compile time, like $if, $for, $env etc
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
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.
V doctor:
What did you do?
./v -g -o vdbg cmd/v && ./vdbg src/board.v
What did you expect to see?
There is a C error when initializing a fixed-size array with {init: 0}. It is different depending on surrounding code: sometimes it is too many initializers, here it is ',' expected (got "*"), sometimes expression expected before '{' much later in the temporary C file
What did you see instead?
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: