Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: internal compiler error: Value live at entry. It shouldn't be. #19610
internal compiler error: Value live at entry. It shouldn't be. func (*colorizer).Write, node line, value v81
I got this error in VS Code and here I've minimized it somewhat.
I'm using go version go1.8 darwin/amd64 but this problem can be reproduced at play.golang.org.
If you run it, you get:
I think this looks like an internal error that shouldn't be due to my incorrect code (which may or may not have been the original trigger).
Looking at the language spec, https://golang.org/ref/spec#ForClause I think this is an error because
So it should raise an error about bad syntax, not internal error.