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
cmd/compile: imag(0) is valid but not accepted #17446
Comments
See also #17398 (indirectly related). |
I think when we fix this issue, we should also pay attention to #11945 because fixing that mentioned issue will mean that
|
When we test this, make sure to test real too: |
CL https://golang.org/cl/45076 mentions this issue. |
Prep work for issues mentioned below. No semantic or functionality change. For #11945. For #17446. Change-Id: Ia1bb2b87647a6daa47f7863c0eb42cf5e1d35a7c Reviewed-on: https://go-review.googlesource.com/45076 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
CL https://golang.org/cl/45081 mentions this issue. |
doesn't compile:
But it's clearly accepted by the spec ("If the argument evaluates to an untyped constant, it must be a number, and the return value of the function is an untyped floating-point constant."). Both gotype and gccgo accept it.
The text was updated successfully, but these errors were encountered: