]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: fix handling of Nname field in (*subster).tstruct.
authorDan Scales <danscales@google.com>
Tue, 11 May 2021 21:14:30 +0000 (14:14 -0700)
committerDan Scales <danscales@google.com>
Fri, 21 May 2021 23:25:07 +0000 (23:25 +0000)
commit5b1120fac7e234af44c09ec0db1982aa2c7b7357
tree85eba55d9236937f7459fc8b10786198f0fe89ee
parent8d2b4cb6cc3100f337e08cc7342f42823fa1dc9a
[dev.typeparams] cmd/compile: fix handling of Nname field in (*subster).tstruct.

We want to keep the Nname references for external function references in
tstruct (not remove them, as is currently happening). We only change the
Nname reference (translate it) when it appears in subst.vars[].

New export/import test sliceimp.go which includes some of these external
function references.

Change-Id: Ie3d73bd989a16082f0cebfb566e0a7faeda55e60
Reviewed-on: https://go-review.googlesource.com/c/go/+/321735
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/sliceimp.dir/a.go [new file with mode: 0644]
test/typeparam/sliceimp.dir/main.go [new file with mode: 0644]
test/typeparam/sliceimp.go [new file with mode: 0644]