]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: always write fun[0] in incomplete itab
authorKeith Randall <khr@golang.org>
Fri, 8 Apr 2022 15:44:40 +0000 (23:44 +0800)
committerHeschi Kreinick <heschi@google.com>
Mon, 9 May 2022 20:25:20 +0000 (20:25 +0000)
commit2375a6882ee4d4e7566618de1a8c8b45a5dfa3fa
tree6519e0c9293e9c22feb3b779d2159d3ab5fd1f49
parent4f4542479d27161d70b22557c52f182c0332ac7b
[release-branch.go1.18] cmd/compile: always write fun[0] in incomplete itab

runtime.getitab need filled fun[0] to identify whether
implemented the interface.

Fixes #51738
Fixes #52244

Change-Id: I0173b98f4e1b45e3a0183a5b60229d289140d1e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/399058
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/399974
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/reflectdata/reflect.go
test/typeparam/issue51700.go [new file with mode: 0644]
test/typeparam/issue52228.go [new file with mode: 0644]