We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal reproducer (0.8.0-dev.2275+8467373bb):
const std = @import("std"); fn func(args: [][*:0]const u8) void {} pub fn main() void { var args = [_][*:0]const u8{ "one", "two" }; // OK func(&args); // ICE { // broken LLVM module found: Call parameter type does not match function signature! // %"[][*:0]u8"* @argv // %"[][*:0]const u8"* call fastcc void @func(%"[][*:0]u8"* @argv), !dbg !16063 // This is a bug in the Zig compiler.thread 69656 panic: // Unable to dump stack trace: debug info stripped func(std.os.argv); } }
The text was updated successfully, but these errors were encountered:
I think this is a dupe of #7807
There is a workaround listed there: const argv: [][*:0]const u8 = std.os.argv; and then call func(argv)
const argv: [][*:0]const u8 = std.os.argv;
func(argv)
Sorry, something went wrong.
No branches or pull requests
Minimal reproducer (0.8.0-dev.2275+8467373bb):
The text was updated successfully, but these errors were encountered: