-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: Value live at entry. It shouldn't be. #19610
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
https://play.golang.org/p/qFArI-VoUn further minimized. |
Thanks for the report. This issue is still present at tip, and it was introduced in CL 27203 (cmd/compile/internal/gc: enable new parser by default). |
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. |
btw, why define PostStmt as SimpleStmt https://golang.org/ref/spec#PostStmt
instead of
? |
@golang101 Because it's easier to see that similarities between Init and Post statements than if the one difference was emphasized in the grammar explicitly. |
@ALTree Thanks for tracking this down. It appears that I missed an extra test that was present in the old code:
Fix forthcoming. |
CL https://golang.org/cl/38375 mentions this issue. |
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.
https://play.golang.org/p/kN2xSXSzH5
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).
The text was updated successfully, but these errors were encountered: