You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: internal compiler error: can't encode a NaN in AuxInt field #38359
$ gotip version
go version devel +782fcb44b9 Fri Apr 10 09:38:07 2020 +0000 linux/amd64
The following program:
package p
func f() {
var st struct {
f float64
_, _ string
}
f := 1e308
st.f = 2*f - 2*f
}
crashes the tip compiler with this error:
$ gotip build crash.go
# command-line-arguments
./crash.go:11:1: internal compiler error: 'f': panic during opt while compiling f:
can't encode a NaN in AuxInt field
Activity
ALTree commentedon Apr 10, 2020
cc @randall77
gopherbot commentedon Apr 10, 2020
Change https://golang.org/cl/227860 mentions this issue:
cmd/compile: prevent constant folding of +/- when result is NaN