C error from optional reference default value set to unsafe { nil }
#19538
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
C error is generated from
field ?&Struct = unsafe { nil }
. Can't imagine why anyone would ever want that. Discovered it on accident when switching some&Struct
types to?&Struct
.Reproduction Steps
Expected Behavior
Expected code to compile
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.2 37e5616
Environment details (OS name and version, etc.)
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: