]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: use 512 bits as max. integer precision
authorRobert Griesemer <gri@golang.org>
Fri, 29 Jan 2021 23:29:36 +0000 (15:29 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 4 Feb 2021 22:15:24 +0000 (22:15 +0000)
commit370e9f58432c51bf3d95308cdc7109e25cc141f6
tree8d690bf0c3f7f9b9c7789fcc6385fd8767c22691
parentca2f15289337f57dcfb938000af249532f79e4d4
[dev.typeparams] cmd/compile/internal/types2: use 512 bits as max. integer precision

This matches the compiler's existing limitations and thus ensures
that types2 reports the same errors for oversize integer constants.

Change-Id: I4fb7c83f3af69098d96f7b6c53dbe3eaf6ea9ee4
Reviewed-on: https://go-review.googlesource.com/c/go/+/288633
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/typecheck/const.go
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/stdlib_test.go
src/cmd/compile/internal/types2/testdata/builtins.src
src/cmd/compile/internal/types2/testdata/const0.src
src/cmd/compile/internal/types2/testdata/const1.src
test/run.go