cmd/compile: fix compiler crash on recursive types
By setting both a valid size and alignment for broken recursive types, we can appease some more safety checks and prevent compiler crashes. Fixes #21882. Change-Id: Ibaa137d8aa2c2a9d521462f144d7016c4abfd6e7 Reviewed-on: https://go-review.googlesource.com/64430 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Showing
test/fixedbugs/issue21882.go
0 → 100644
Please register or sign in to comment