]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: mark wrapper methods for unnamed types as DUPOK.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 2 Jan 2013 20:42:26 +0000 (21:42 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 2 Jan 2013 20:42:26 +0000 (21:42 +0100)
commit20c76f7f3f9a8e353cedf57fd633afdc00c09d6f
tree6ea5541bd2282da104aa38ad2eecc1633d8de1a0
parentae2131ab3b0ade61a3b21bfea013350a825ad45a
cmd/gc: mark wrapper methods for unnamed types as DUPOK.

Unnamed types like structs with embedded fields can have methods.
These methods are generated on-the-fly by the compiler and
it may happen for identical types in different packages.
The linker must accept these multiple definitions.

Fixes #4590.

R=golang-dev, rsc
CC=golang-dev, remy
https://golang.org/cl/7030051
src/cmd/gc/subr.c
test/fixedbugs/issue4590.dir/pkg1.go [new file with mode: 0644]
test/fixedbugs/issue4590.dir/pkg2.go [new file with mode: 0644]
test/fixedbugs/issue4590.dir/prog.go [new file with mode: 0644]
test/fixedbugs/issue4590.go [new file with mode: 0644]