-
Notifications
You must be signed in to change notification settings - Fork 17.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
cmd/compile: interface conversion panic #11540
Comments
Another reproducer: package a
var a = complex64(1)/1e-48 |
Possibly related, but simpler:
=>
(same crash for imag instead of real). The issue here seems to be that 1e1000 cannot be represented as a float64; and it appears that real and imag don't work for untyped constants outside the float64 range. This is in contrast to complex, and probably should be fixed. It's also unclear from the spec. |
CL https://golang.org/cl/12860 mentions this issue. |
…'imag' For golang#11669, golang#11540, golang#11945, golang#11946, golang#11947. Change-Id: Ifb0053c498cee9f3473c396f9338d82bd856c110 Reviewed-on: https://go-review.googlesource.com/12860 Reviewed-by: Russ Cox <[email protected]> Reviewed-by: Rob Pike <[email protected]>
Current compiler prints: |
compile crashes on the following program:
go version devel +bb7e665 Tue Jun 30 07:42:37 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: