1
0
mirror of https://github.com/golang/go synced 2024-11-14 09:00:21 -07:00
go/src/cmd
Robert Griesemer cabf622da8 cmd/compile: fix detection of calls to reflect.Method
The existing code used Type.String() to obtain the name of a type;
specifically type reflect.Method in this case. However, Type.String()
formatting is intended for error messages and uses the format
pkgpath.name instead of pkgname.name if a package (in this case
package reflect) is imported multiple times. As a result, the
reflect.Method type detection failed under peculiar circumstances
(see the included test case).

Thanks to https://github.com/ericlagergren for tracking down
an easy way to make the bug disappear (which in turn directly
led to the underlying cause).

Fixes #19028.

Change-Id: I1b9c5dfd183260a9be74969fe916a94146fc36da
Reviewed-on: https://go-review.googlesource.com/45777
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-06-14 21:57:56 +00:00
..
addr2line cmd/go: build test binaries with -s in addition to -w 2017-03-29 17:18:16 +00:00
api api: promote next to go1.9 2017-06-14 21:07:10 +00:00
asm cmd/internal/obj/arm: fix MOVW to/from FPSR 2017-06-13 14:06:58 +00:00
cgo cmd/cgo: match note following error in compiler errors 2017-06-14 17:07:19 +00:00
compile cmd/compile: fix detection of calls to reflect.Method 2017-06-14 21:57:56 +00:00
cover cmd/cover: take default value of total only once. 2017-06-02 17:59:12 +00:00
dist runtime: fix ppc64le c-archive init 2017-05-24 22:28:33 +00:00
doc cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00
fix cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
go cmd/go: disable tool version check during bootstrap 2017-06-14 21:44:01 +00:00
gofmt cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
internal runtime: remove unused arm assembly for div/mod 2017-06-14 18:00:26 +00:00
link cmd/link: implement trampolines for ppc64le with ext linking 2017-06-14 14:12:11 +00:00
nm all: fix some printf format strings 2017-02-14 02:09:30 +00:00
objdump cmd/internal/objabi: fix the bug of shrinking SymType down to a uint8 2017-05-16 12:26:10 +00:00
pack all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
pprof cmd/pprof: update README to explain relationship with github.com/google/pprof 2017-04-10 19:51:01 +00:00
trace cmd/trace: document that trace viewer is only tested on chromium 2017-04-20 16:44:55 +00:00
vendor cmd/vendor/arch/x86: pull new version from x repo 2017-04-20 22:39:48 +00:00
vet runtime: remove unused arm assembly for div/mod 2017-06-14 18:00:26 +00:00