thread 18378322 panic: index out of bounds
/Users/ehaas/source/arocc/src/Preprocessor.zig:802:25: 0x10467dd1b in Preprocessor.nextBufToken (arocc)
return buf.items[start_idx.*];
^
/Users/ehaas/source/arocc/src/Preprocessor.zig:845:35: 0x10464b76d in Preprocessor.collectMacroFuncArguments (arocc)
var tok = try nextBufToken(pp, tokenizer, buf, start_idx, end_idx, extend_buf);
^
/Users/ehaas/source/arocc/src/Preprocessor.zig:919:67: 0x1045f3902 in Preprocessor.expandMacroExhaustive (arocc)
const args = (try pp.collectMacroFuncArguments(tokenizer, buf, ¯o_scan_idx, &moving_end_idx, extend_buf, macro.is_builtin)) orelse {
^
/Users/ehaas/source/arocc/src/Preprocessor.zig:1011:33: 0x1045c4c7c in Preprocessor.expandMacro (arocc)
try pp.expandMacroExhaustive(tokenizer, &buf, 0, 1, true);
^
/Users/ehaas/source/arocc/src/Preprocessor.zig:308:35: 0x1045ba4ef in Preprocessor.preprocess (arocc)
try pp.expandMacro(&tokenizer, tok);
^
/Users/ehaas/source/arocc/src/main.zig:237:22: 0x10459f818 in processSource (arocc)
try pp.preprocess(source);
^
/Users/ehaas/source/arocc/src/main.zig:223:22: 0x104594151 in handleArgs (arocc)
processSource(comp, source, builtin, user_macros) catch |e| switch (e) {
^
/Users/ehaas/source/arocc/src/main.zig:41:15: 0x1045912dd in main (arocc)
handleArgs(&comp, args) catch |err| switch (err) {
^
/Users/ehaas/source/zig/build/lib/zig/std/start.zig:524:29: 0x10460ec4c in std.start.callMain (arocc)
return root.main();
^
/Users/ehaas/source/zig/build/lib/zig/std/start.zig:469:12: 0x104595257 in std.start.callMainWithArgs (arocc)
return @call(.{ .modifier = .always_inline }, callMain, .{});
^
/Users/ehaas/source/zig/build/lib/zig/std/start.zig:434:12: 0x104595195 in std.start.main (arocc)
return @call(.{ .modifier = .always_inline }, callMainWithArgs, .{ @intCast(usize, c_argc), c_argv, envp });
^
???:?:?: 0x7fff204ecf3c in ??? (???)
???:?:?: 0x1 in ??? (???)
[1] 94782 abort ~/source/arocc/zig-out/bin/arocc test.c