-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Incorrect evaluation precedence for bitwise operators #1902
Labels
bug
Observed behavior contradicts documented or intended behavior
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
miscompilation
The compiler reports success but produces semantically incorrect code.
Milestone
Comments
Related #114 |
markfirmware/zig-bare-metal-microbit#10 What would be needed to get | and & to evaluate as specified? Thanks, Mark. |
@tgschultz @andrewrk I think this should be labeled miscompilation. |
It's planned for this to be a compile error; one must use parentheses for this. #114 |
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
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
miscompilation
The compiler reports success but produces semantically incorrect code.
According to the documentation, bitwise operator precedence is as follows:
However, this changed at some point, causing the following test to fail:
The text was updated successfully, but these errors were encountered: