-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Floats and compile time ints #12873
Labels
bug
Observed behavior contradicts documented or intended behavior
Comments
CarlOlson
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Sep 16, 2022
I think this is working as expected no? |
working as intended |
|
Working as intended with current semantics but would work as you expected if #7967 is accepted. |
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 15, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed.
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 15, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed.
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 15, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed.
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 16, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 20, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 21, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.9.1
Steps to Reproduce
Expected Behavior
I expect case 1 to be a compile error.
I expect either a compile error or
f == 1.0 / 3.0
for case 2.The current behavior allows for errors to be added easily and can it be hard to track down the cause. I was getting a chain of NaN.
Actual Behavior
Case 2
Case 3
Case 4
The text was updated successfully, but these errors were encountered: