]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix wrong interaction between inlining and embedded builtins.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 22 Dec 2012 18:16:31 +0000 (19:16 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 22 Dec 2012 18:16:31 +0000 (19:16 +0100)
commit9aef20e823f43eadc2171ea4cf713dddf60cd4dd
tree701970a0b1ace80ffcb92c1dfca2a8de1335d537
parentced8004a00c62b7aff4e6f6a702f0824b2312fd5
cmd/gc: fix wrong interaction between inlining and embedded builtins.

The patch makes the compile user an ordinary package-local
symbol for the name of embedded fields of builtin type.

This is incompatible with the fix delivered for issue 2687
(revision 3c060add43fb) but fixes it in a different way, because
the explicit symbol on the field makes the typechecker able to
find it in lookdot.

Fixes #3552.

R=lvd, rsc, daniel.morsing
CC=golang-dev
https://golang.org/cl/6866047
src/cmd/gc/dcl.c
src/cmd/gc/fmt.c
test/bugs/bug434.go [deleted file]
test/fixedbugs/issue3552.dir/one.go [moved from test/bugs/bug434.dir/one.go with 100% similarity]
test/fixedbugs/issue3552.dir/two.go [moved from test/bugs/bug434.dir/two.go with 100% similarity]
test/fixedbugs/issue3552.go [new file with mode: 0644]
test/run.go