]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: remove constant bounds check
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 2 Feb 2024 02:35:07 +0000 (09:35 +0700)
committerGopher Robot <gobot@golang.org>
Tue, 20 Feb 2024 22:29:14 +0000 (22:29 +0000)
commit5428cc4f148bec34987781137ccd30494a99ad15
treeaca41e0e943051150d922ae1441a64b2aae504c3
parent53708d86b076b7295e93e49b7a19ac7d9082044f
cmd/compile/internal/typecheck: remove constant bounds check

types2 handles all constant-related bounds checks in user Go code now,
so it's safe to remove the check from typecheck, avoid the inconsistency
with type parameter.

Fixes #65417

Change-Id: I82dd197b78e271725d132b5a20450ae3e90f9abc
Reviewed-on: https://go-review.googlesource.com/c/go/+/560575
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/typecheck/expr.go
test/fixedbugs/issue65417.go [new file with mode: 0644]