Skip to content

Compiler segfaults on null ?? x #390

Closed

Description

@scurest
$ cat a.zig
pub fn main() -> %void {
    _ = null ?? 0;
}

$ zig build_exe a.zig 
Segmentation fault (core dumped)

The segfaults seems to happen no matter what is on the RHS of ??. Putting null into a variable and doing x ?? 0 works fine.

Activity

  1. added this to the 0.1.0 milestone on Jun 13, 2017
  2. added
    bug
    on Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions