]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: avoid clobbering the AST in cgen_callmeth.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 6 Oct 2012 22:52:40 +0000 (00:52 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 6 Oct 2012 22:52:40 +0000 (00:52 +0200)
commit0b2ca9e62f778adb95c31e57e120ef1cbfc42b25
tree21457891bcf4b4d92a86ba2993daec92179c0a23
parent46fcfdaa7dc4c35cf593df2b883db28814e641fe
cmd/gc: avoid clobbering the AST in cgen_callmeth.

It confused the detection of init loops when involving
method calls.

Fixes #3890.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6620067
src/cmd/gc/gen.c
src/cmd/gc/sinit.c
test/fixedbugs/bug459.go [new file with mode: 0644]