-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: untyped type mismatch, have: untyped float, want: untyped int #41680
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
Sorry, I forgot to include the compilation error.
|
Thanks. Looks like this is related to a pre-existing type-checking bug related to
Edit: Go 1.15's error message is:
(Positively, it successfully compiles at tip, likely thanks to CL 255217.) |
@mdempsky Is it normal that |
@cuonglm No, that's the issue. If a Node has type Idealfloat, then it should have value CTFLT. |
So I think that's the bug here. I can't find where we currently set that information. This bug does exists before CL 255217, it just works because we assign the value to n instead of doing assertion. |
@cuonglm That's my assessment too. I have a fix. Will upload shortly. |
Change https://golang.org/cl/257966 mentions this issue: |
On current tip (874b313, CL 247477) this valid code gets an incorrect compilation error.
I believe this is due to CL 255217. CC @cuonglm @mdempsky
The text was updated successfully, but these errors were encountered: