Skip to content

Instantly share code, notes, and snippets.

@dmgk
Last active May 17, 2021 20:19
Show Gist options
  • Save dmgk/ae3e900f0aaf86900d538a707f992841 to your computer and use it in GitHub Desktop.
Save dmgk/ae3e900f0aaf86900d538a707f992841 to your computer and use it in GitHub Desktop.
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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment