]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix corruption in export of &T{} literals.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 25 Feb 2013 23:43:31 +0000 (00:43 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 25 Feb 2013 23:43:31 +0000 (00:43 +0100)
commit9e66ee456210024ad05ba95f3b245cdc974aba43
tree176842c7d8a6ea574b2b814975ded53caaa0d10b
parent9fe60801aeca801010b42e1dd7ad57a173dc9740
cmd/gc: fix corruption in export of &T{} literals.

Composite literals using the &T{} form were incorrectly
exported, leading to weird errors at import time.

Fixes #4879.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7395054
src/cmd/gc/fmt.c
src/cmd/gc/typecheck.c
test/fixedbugs/issue4879.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue4879.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue4879.go [new file with mode: 0644]