C backend does not generate function pointer conversion #22427
Labels
backend-c
The C backend (CBE) outputs C source code.
bug
Observed behavior contradicts documented or intended behavior
miscompilation
The compiler reports success but produces semantically incorrect code.
Milestone
Zig Version
0.14.0-dev.2587+f57a7458b
Steps to Reproduce and Observed Behavior
A minimal example:
Quoted from the generated non-compilable C code:
See also #22368 (comment)
Expected Behavior
The generated C code includes the function pointer conversion and can be compiled by C compiler.
The text was updated successfully, but these errors were encountered: