diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-07-02 09:08:43 +0200 |
---|---|---|
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-07-02 09:08:43 +0200 |
commit | 428ea6865c7eff6d8632faa18335c64d4ae9f422 (patch) | |
tree | 2da4ef887a923970bf4beefa78fc08422f33c119 /test/cmp.go | |
parent | efced7c6e984f26b4c275b19ba61f2c2629d95ea (diff) | |
download | go-428ea6865c7eff6d8632faa18335c64d4ae9f422.tar.gz go-428ea6865c7eff6d8632faa18335c64d4ae9f422.zip |
cmd/gc: fix computation of equality class of types.
A struct with a single field was considered as equivalent to the
field type, which is incorrect is the field is blank.
Fields with padding could make the compiler think some
types are comparable when they are not.
Fixes #5698.
R=rsc, golang-dev, daniel.morsing, bradfitz, gri, r
CC=golang-dev
https://golang.org/cl/10271046
Diffstat (limited to 'test/cmp.go')
-rw-r--r-- | test/cmp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmp.go b/test/cmp.go index 5be64561d5..7183f02079 100644 --- a/test/cmp.go +++ b/test/cmp.go @@ -296,7 +296,7 @@ func main() { { var x = struct { x int - _ []int + _ string y float64 _ float64 z int |