cmd/compile: compiler crash on too large channel type #52767
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Latest release in go1.17.9, but not in go1.18.1
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/3ViYxZ6i_5a?v=goprev
What did you expect to see?
./prog.go:4:11: channel element type too large (>64kB)
Go build failed.
What did you see instead?
./prog.go:4:11: internal compiler error: bad type: chan struct { Field2 [1000][1000][1000]string }
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
Go build failed.
The text was updated successfully, but these errors were encountered: