You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I declared a struct(Group) that has a map whose key is an invalid recursive type(Cell), and compiled it.
This is the minimal code which causes this bug: https://play.golang.org/p/TgiCsMyeb-
What did you expect to see?
The compiler compiles the source or reports some errors without a crash.
What did you see instead?
The compiler caused a stack overflow.
Here is the message on crash:
The text was updated successfully, but these errors were encountered:
mdempsky
changed the title
Compiler stack overflow when compiling a map whose key is an invalid recursive type
cmd/compile: stack overflow on invalid recursive map key type
Oct 31, 2017
What version of Go are you using (
go version
)?go version go1.9.2 linux/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
I declared a struct(Group) that has a map whose key is an invalid recursive type(Cell), and compiled it.
This is the minimal code which causes this bug:
https://play.golang.org/p/TgiCsMyeb-
What did you expect to see?
The compiler compiles the source or reports some errors without a crash.
What did you see instead?
The compiler caused a stack overflow.
Here is the message on crash:
The text was updated successfully, but these errors were encountered: