]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: builtins may be in the unsafe package
authorKeith Randall <khr@golang.org>
Tue, 31 Aug 2021 16:31:56 +0000 (09:31 -0700)
committerKeith Randall <khr@golang.org>
Tue, 31 Aug 2021 17:21:38 +0000 (17:21 +0000)
commitf27d6a23b0b9d2cb41441a5dd2bd6d65dd94acf0
treee96aa2ccd24c0abb8fc89288478bd383371e6bcb
parent68152359fdd45e8d51aaaec64075aad4ff8f68b2
cmd/compile: builtins may be in the unsafe package

Now that unsafe.Sizeof and friends can operate on generic parameters,
and evaluate to non-constants, we need to export/import them correctly.

Fixes #48094

Change-Id: If3ebf77255385cd5462e13fb7ced8b157ba3cf5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/346469
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/typecheck/iexport.go
src/cmd/compile/internal/typecheck/iimport.go
test/typeparam/issue48094.dir/a.go [new file with mode: 0644]
test/typeparam/issue48094.dir/main.go [new file with mode: 0644]
test/typeparam/issue48094.go [new file with mode: 0644]