]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: report constant overflow in binary ops
authorRobert Griesemer <gri@golang.org>
Fri, 20 Nov 2020 01:49:05 +0000 (17:49 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 20 Nov 2020 02:39:33 +0000 (02:39 +0000)
commit8fbdacf64c982b9a7f8cb27754bb01cedffa53c7
treebd081b1462580df8e41b37b00187531a3575262a
parentb1ae0a0646d062559249675e6bf6883b44094046
[dev.typeparams] cmd/compile/internal/types2: report constant overflow in binary ops

This is the go.types changes of https://golang.org/cl/271706
ported to types2.

Also: Fixed a bug in the go/types version (was using the
wrong position in the error message).

Change-Id: I798b80243a66f0be5b943a6951d7a1ff769abca2
Reviewed-on: https://go-review.googlesource.com/c/go/+/271806
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/fixedbugs/issue20583.src [new file with mode: 0644]
src/cmd/compile/internal/types2/stmt.go
src/go/types/expr.go