by codr7 · 1y ago · 0 comments
I regularly run into internal compiler errors these days for pretty normal looking code.
It's getting to the point where I'm reluctant to invest more time in the language right now.
UPDATE: See comment below for full error message and a link to the code.
What error are you talking about?
> For the foreseeable future, the Go team will stop pursuing syntactic language changes for error handling
Internal compiler errors are very much the implementation's problem.
UPDATE: See comment below for full error message and a link to the code.
<unknown line number>: internal compiler error: unexpected types2.Invalid
Please file a bug report including a short program that triggers the error. https://go.dev/issue/new
And here's the code that triggers it:
https://github.com/codr7/shi-go/blob/main/src/shi/call.go
The code is never referenced in the project, but running make in the project root with this file in it triggers the error. Remove the file and the error disappears.
Happy now?