-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: compiler crash on too large channel type #52767
Comments
I'm pretty sure this is a won't-fix. It's a 1.17 fuzzer bug fixed in 1.18 (replacing ICE with an error message) that didn't make the backport threshold back whenever we fixed it. @dmitshur, your opinion? |
I agree with this not meeting the bar for backport to 1.17, and it doesn't affect valid Go program that build successfully. We can move this issue to Go 1.18 milestone and close as fixed. |
I saw this on go.dev/play in go1.20, go1.21,gotip are all outputs |
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: