-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error when processing invalid recursive type #49276
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
Comments
cc @griesemer |
Should be fixed but not a release blocker, and also not urgent. This is pretty pathological code. |
Pathological, yes. For context, I ran into this via a typo / copy-paste error. Not urgent, not a blocker, a better error message would be nice. |
Investigated a bit. The [edit] |
Another fun test case: package p
import "unsafe"
type a struct { f *[unsafe.Sizeof(a{})]int } |
Change https://golang.org/cl/361412 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is new in tip. It is not present in go1.17.2.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: