Skip to content

@max crashes compiler for incompatible argument types #24060

Open
@PanSashko

Description

@PanSashko

Zig Version

0.15.0-dev.691+8dbd29cc4

Steps to Reproduce and Observed Behavior

Run zig test for the code

test {
    _ = @max(0, false);
}

Compiler crashes with SEGFAULT.

Expected Behavior

Compilation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorerror messageThis issue points out an error message that is unhelpful and should be improved.frontendTokenization, parsing, AstGen, Sema, and Liveness.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions