Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler crash involving error{}!noreturn #22742

Open
wooster0 opened this issue Feb 4, 2025 · 0 comments
Open

Compiler crash involving error{}!noreturn #22742

wooster0 opened this issue Feb 4, 2025 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@wooster0
Copy link
Contributor

wooster0 commented Feb 4, 2025

Zig Version

0.14.0-dev.2989+bf6ee7cb3

Steps to Reproduce and Observed Behavior

test {
    _ = &x;
}

fn x() error{}!void {
    try y();
}

fn y() error{}!noreturn {}
$ zig test x.zig
Segmentation fault

Expected Behavior

Successful compilation.

@wooster0 wooster0 added the bug Observed behavior contradicts documented or intended behavior label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

1 participant