Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Problematic translation: function named panic #28

@ehaas

Description

@ehaas
int panic(void) {
    return 0;
}

int main(void) {
    int x = panic();
    return x;
}

Trying to build the translated file produces:

local/zig-aarch64-macos-0.15.0-dev.847+850655f06/lib/std/builtin.zig:1152:25: error: expected 0 argument(s), found 3
                    root.panic(msg, @errorReturnTrace(), ra);
                    ~~~~^~~~~~
test.zig:4:12: note: function declared here
pub export fn panic() c_int {
~~~~~~~~~~~^~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions