]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: sort method sets using package height
authorMatthew Dempsky <mdempsky@google.com>
Thu, 5 Apr 2018 19:48:28 +0000 (12:48 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 10 Apr 2018 00:06:06 +0000 (00:06 +0000)
commit49ed4cbe853e910b6f8d83012bc8b9afedb4b6b6
tree3a772620caaef53b0c28e4f9b0bc48ce6015eb2c
parent07029254a0f8991fb93f0838e469d2fcff514e0f
cmd/compile: sort method sets using package height

Also, when statically building itabs, compare *types.Sym instead of
name alone so that method sets with duplicate non-exported methods are
handled correctly.

Fixes #24693.

Change-Id: I2db8a3d6e80991a71fef5586a15134b6de116269
Reviewed-on: https://go-review.googlesource.com/105039
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/types/sym.go
test/fixedbugs/issue24693.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue24693.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue24693.dir/c.go [new file with mode: 0644]
test/fixedbugs/issue24693.go [new file with mode: 0644]
test/fixedbugs/issue24693.out [new file with mode: 0644]