]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: always write fun[0] in incomplete itab
authorWayne Zuo <wdvxdr@golangcn.org>
Fri, 8 Apr 2022 15:44:40 +0000 (23:44 +0800)
committerKeith Randall <khr@golang.org>
Tue, 12 Apr 2022 17:06:19 +0000 (17:06 +0000)
commit6f5590edf6883583a801ceb9309f074c0cd7c1cd
tree9e264e1550bdd681f6858125102741f324b5663d
parent5bf6c97e76c721242a9b064950cd901c33f6f0b9
cmd/compile: always write fun[0] in incomplete itab

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

Fixes #51700
Fixes #52228

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>
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]