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
Internal compiler error: 'main': not lowered: v139, Move SSA UNSAFEPTR UNSAFEPTR SSA Please file a bug report including a short program that triggers the error.
#39830
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.
Well, it should run and panic with makeslice: len out of range when the size passed to make goes negative.
But the compiler shouldn't crash.
This works correctly in 1.11. It starts failing in 1.12. It continues to fail though and including 1.14, then works correctly again at tip.
So there's nothing to do for tip. I'm leaning against backporting a fix for this. It only happens for a program that would otherwise be guaranteed to panic. And it has been broken for a really long while without anyone noticing.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Deepin 15 [Linux]; AMD 64
go env
OutputWhat did you do?
I tried to install a module containing a file containing the following [go install]:
What did you expect to see?
[1, 2] [1] [] [] [] []
What did you see instead?
# github.com/qeetell-aaaa/aaaaaaab/RemoveLastByte_Test
./test.go:10:30: internal compiler error: 'main': not lowered: v139, Move SSA UNSAFEPTR UNSAFEPTR SSA
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
The text was updated successfully, but these errors were encountered: