-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: name too long #27256
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
Doesn't seem to be a regression from 1.10.3 or 1.9.7. |
A typical case of infinite interface expansion when creating the type name during object file generation. Not related to exports. Related to #26863 only insofar that in both cases an recursive algorithm stack-overflows (but the code is completely unrelated). |
@mdempsky Added you only in case you feel so inclined. |
Too late for 1.12. |
FWIW, the original (proprietary) code that triggered this problem can't be reproduced on 1.11.5, but the code in the playground link can.
|
Is there any update on this issue? I'm facing the same error for large nested struct types definition on |
No updates other than what's been commented here. Anonymous, cyclic interfaces continue to be troublesome. |
This might have been fixed with CL 214239. |
@randall77 Thanks, I missed that CL. |
This appears to be working fine with Go 1.18 (adjusted test). Closing. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.11, darwin/amd64
What did you do?
https://play.golang.org/p/WNDetHOIGt3
If you remove
S
, it compiles just fine.Related, if only tangentially, to #26863.
The text was updated successfully, but these errors were encountered: