Coercion from slice of non-const pointer to slice of const pointer, during param passing, causes "broken LLVM module found: Call parameter type does not match function signature!" #10603
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
zig-linux-x86_64-0.9.0 and zig-linux-x86_64-0.10.0-dev.290+3901b6fb0
Steps to Reproduce
Here's a narrowed down case that fails:
Expected Behavior
Expected coercion from slice of non-const pointers to slice of const pointers to work. This does work during assignment, just not parameter passing.
Actual Behavior
Output:
I get this result on the latest master build and the 0.9.0 build from the download page:
zig-linux-x86_64-0.10.0-dev.290+3901b6fb0
zig-linux-x86_64-0.9.0
The text was updated successfully, but these errors were encountered: