Skip to content

connect inline assembly errors from zig back to the source #2080

@andrewrk

Description

@andrewrk

Related to #246 which is for when LLVM emits assembly errors. This issue is for when Zig emits assembly template parsing errors and is a prerequisite of #246. Also related is #215.

comptime {
    asm(
        \\line 1
        \\line 2 %
        \\line 3
    );
}

output:

/home/andy/downloads/zig/build/test.zig:2:5: error: expected a '%' or '['
    asm(
    ^

The error points at the asm keyword which does not help you find where the problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions