]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: backport fix for #51840
authorMatthew Dempsky <mdempsky@google.com>
Tue, 3 May 2022 00:36:04 +0000 (17:36 -0700)
committerAlex Rakoczy <alex@golang.org>
Wed, 25 May 2022 19:31:22 +0000 (19:31 +0000)
commite1b14f53c13c7ab809ea1a33d2ec7f787efdafa8
tree3f9e46add63e07e9c44e65dd292fe68ca31e6617
parente46ac3837026bef0feec2d83dbf07a19c1aad29d
[release-branch.go1.18] cmd/compile: backport fix for #51840

This CL is a manual backport of CLs 403837 and 404914 to Go 1.18.

CL 403837 was intended just as a simplification CL, but evidently it
also fixed #51840. However, for backporting to Go 1.18, the existing
logic needs to be preserved to support -G=0 mode (which still relies
on Ntype).

Fixes #51849.

Change-Id: Ib060b0bc67ecf26de8a65d5b4d2f8a65cd547517
Reviewed-on: https://go-review.googlesource.com/c/go/+/405436
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/typecheck/stmt.go
test/typeparam/issue51840.go [new file with mode: 0644]