]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: avoid endless recursion in the Comparable predicate
authorRob Findley <rfindley@google.com>
Wed, 9 Dec 2020 11:10:52 +0000 (06:10 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 9 Dec 2020 21:05:24 +0000 (21:05 +0000)
commit89f465c2b59cea32c10ed69eaa07e17f85c910e2
tree8f92ff9ada66dea45b32828c9aade72064f0eb79
parentf1980efb92c011eab71aa61b68ccf58d845d1de7
go/types: avoid endless recursion in the Comparable predicate

This is a port of CL 276374 from the dev.typeparams branch. Avoid an
endless recursion in Comparable by tracking types that have already been
considered.

Fixes #43088

Change-Id: I927b29ac544df9bfb5c8c04699d57fafe6cfff73
Reviewed-on: https://go-review.googlesource.com/c/go/+/276552
Run-TryBot: Robert Findley <rfindley@google.com>
Trust: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/issues_test.go
src/go/types/predicates.go