]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix escape analysis bug.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 15 Mar 2013 08:03:45 +0000 (09:03 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 15 Mar 2013 08:03:45 +0000 (09:03 +0100)
commit20c7e41555e2c2b393c239f581ef7e216c795db4
treeb686f7c6c6a0dc22eb87bd1e42b14525a475e433
parent2924638d2631bf30f490e30ed120c4089c716b71
cmd/gc: fix escape analysis bug.

It used to not mark parameters as escaping if only one of the
fields it points to leaks out of the function. This causes
problems when importing from another package.

Fixes #4964.

R=rsc, lvd, dvyukov, daniel.morsing
CC=golang-dev
https://golang.org/cl/7648045
src/cmd/gc/esc.c
test/escape2.go
test/fixedbugs/issue4964.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue4964.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue4964.go [new file with mode: 0644]