Join GitHub today
cmd/compile: crash on interface embedding cycles if a type alias is used #23823
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
changed the title
cmd/compile: compiler crashes on interface embedding cycles if a type alias is used
Feb 14, 2018
This is turning out to be a subtle bug in the compiler, and I've spent enough hours failing to find the fix. I'll let someone else (@mdempsky?) take over.
As a piece of perhaps useful information, if you replace the interface types with structs, there is no crash. So the bug involves both aliases and interfaces - if either of them is removed, the bug disappears.
referenced this issue
Jun 1, 2018
Hm, interesting. The previous CLs were known not to fix this completely (doing this correctly requires more changes in the compiler than we felt comfortable making during the various freezes); but there should not be a raw crash but a compiler-internal error with an error message.