]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix inlining internal error with T.Method calls.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 3 Dec 2012 12:39:40 +0000 (13:39 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 3 Dec 2012 12:39:40 +0000 (13:39 +0100)
commitbcea0dd1d0d41c5cf503c87e86460cd34dbc7dfb
treee36932b4ec756b6c7a5a1a68d3ed3c4b13622b60
parent19d793a32771ab8f9e64c67b792cd4cddacb679c
cmd/gc: fix inlining internal error with T.Method calls.

The compiler was confused when inlining a T.Method(f()) call
where f returns multiple values: support for this was marked
as TODO.

Variadic calls are not supported but are not inlined either.
Add a test preventively for that case.

Fixes #4167.

R=golang-dev, rsc, lvd
CC=golang-dev
https://golang.org/cl/6871043
src/cmd/gc/inl.c
test/fixedbugs/issue4167.go [new file with mode: 0644]