]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix irgen mis-handling of ... argument when creating closure
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 8 Nov 2021 06:08:58 +0000 (13:08 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 9 Nov 2021 00:08:09 +0000 (00:08 +0000)
commitbee0c739007617c840ac29a6f8fcf9f24cbf1505
tree579cf1a58464e5b00aa11cc81fe850cc10a40a7f
parent67e22941dfe1555d8597e48f49ff86d3be340a36
cmd/compile: fix irgen mis-handling of ... argument when creating closure

When bulding formal arguments of newly created closure, irgen forgets to
set "..." field attribute, causing type mismatched between the closure
function and the ONAME node represents that closure function.

Fixes #49432

Change-Id: Ieddaa64980cdd3d8cea236a5a9de0204ee21ee39
Reviewed-on: https://go-review.googlesource.com/c/go/+/361961
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/issue49432.go [new file with mode: 0644]