golang/go

cmd/compile: meaningless error message "truncated to integer"

griesemer opened this issue · 1 comments

See issue #11350 for background info. Split out this part as a separate error.

package a
const a int = 1-1/1e100

The error message "constant 1 truncated to integer" error does not make sense. It should be clearer.

CL https://golang.org/cl/35411 mentions this issue.