logoalt Hacker News

shivamacharyalast Tuesday at 6:04 PM2 repliesview on HN

I only say this because I have yet to encounter a single internal compiler error in years of writing Go professionally. I can’t conceive of the kind of code one must be writing for internal compiler errors to be a repeated issue.


Replies

codr7last Tuesday at 6:23 PM

So here's the complete error message:

<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?

show 1 reply