-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
compiler does not catch comparison with "undefined" #8520
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
Comments
This is undefined behavior, anything can happen. I think you might be confused with |
Is there an opportunity here for zig to choose another term that doesn't bring with it meaning from other languages? |
Just to be sure nobody gets confused: |
which currently compiles fine. |
duplicate of #63 |
Based on an example from the documentation:
The above appears to pass a
zig test
.The text was updated successfully, but these errors were encountered: