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
When attempting to build this program using go1.19 or go1.18.5, an internal compiler error is triggered:
david@w520:~/repos/gobug$ go build main.go
# command-line-arguments
./main.go:38:13: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
In a previous version of go, namely go.1.18.2, this error does NOT occur, i.e. there a no build errors.
david@MacBook golang-compiler-error % go build main.go
david@MacBook golang-compiler-error %
Other Observations:
The bug is triggered by a combination of
generics
nested structs
interfaces
Exhaustive bug description and other observations in this GitHub Repository
What version of Go are you using (go version)?
$ go version
go version go1.19 linux/amd64
Does this issue reproduce with the latest release?
Input
Output:
When attempting to build this program using go1.19 or go1.18.5, an internal compiler error is triggered:
In a previous version of go, namely go.1.18.2, this error does NOT occur, i.e. there a no build errors.
Other Observations:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What did you do?
After realizing that the template asks for a playground link, I c/p the code to playground: https://go.dev/play/p/toMBvIw6jmU
Interesting short-term fix for others who observe this bug
Please refer to my bug report repository for details.
The text was updated successfully, but these errors were encountered: