cgen: regression for Option return of C alias #21493
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
After #21054 there is a builder error when returning an option that is an alias of a C struct that is not a pointer. It still works with a Result or regular-alias return type.
Workflow that run into it: https://github.com/ttytm/dialog/actions/runs/9044737428
Reproduction Steps
Unfortunately, extracting a self contained example is currently not possible.
For now, I would link a lib that runs into this regression https://github.com/ttytm/dialog
There, build the minimal example (for a repro only the color picker suffices).
Expected Behavior
Works as before.
Current Behavior
gcc
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.5 35f6523
Environment details (OS name and version, etc.)
all
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: