]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark type descriptors as always dupok
authorKeith Randall <khr@golang.org>
Sat, 30 Oct 2021 21:39:29 +0000 (14:39 -0700)
committerKeith Randall <khr@golang.org>
Tue, 2 Nov 2021 18:31:53 +0000 (18:31 +0000)
commit79c5240799e02feeacfdde3472f22b4b0401f3c7
treea80c740425d531b0b15ebe01ce7f5ddab73b40a1
parentf7a95d2c17c2b2506034d519b68a267c944f6450
cmd/compile: mark type descriptors as always dupok

The types of the two interfaces should be equal, but they aren't.
We end up with multiple descriptors for a type when we need type
descriptors to be unique.

Fixes #49241

Change-Id: I8a6c70da541c6088a92a01392bc83b61cc130eba
Reviewed-on: https://go-review.googlesource.com/c/go/+/360134
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/reflectdata/reflect.go
test/typeparam/issue49241.dir/a.go [new file with mode: 0644]
test/typeparam/issue49241.dir/b.go [new file with mode: 0644]
test/typeparam/issue49241.dir/c.go [new file with mode: 0644]
test/typeparam/issue49241.dir/main.go [new file with mode: 0644]
test/typeparam/issue49241.go [new file with mode: 0644]