-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Recursion in unused.zig causes infinite loop #24
Comments
can u post the zig file that tripped this issue as well? I'm happy to look into this |
It can be reproduced just by running ziglint on |
this behavior is much weirder than i expected. digging... |
|
bottom of strace stack is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test example
bad\unused_decl.zig
causes stack overflow due to recursion having infinite loop.It goes to:
where for init node we have
container_decl_two
which calls
checkNamespace
and it repeats.Can be fixed by just removing:
But probably larger refactor would be needed to make it more performant/safer.
The text was updated successfully, but these errors were encountered: