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

pub fn main() !noreturn crashes the compiler #6181

Closed
WoodyAtHome opened this issue Aug 27, 2020 · 1 comment
Closed

pub fn main() !noreturn crashes the compiler #6181

WoodyAtHome opened this issue Aug 27, 2020 · 1 comment

Comments

@WoodyAtHome
Copy link

pub fn main() !noreturn {
    while (true){

    }
}

then
zig build-exe main.zig

Sometimes the compiler gives an error, sometimes it doesn't stop on my machine and the hole machine is unusable. Only Power off helped.

zig version 0.6.0+fc001110b
ubuntu 20.04.1

@alexnask
Copy link
Contributor

Duplicate of #3461

@Vexu Vexu closed this as completed Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants