-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
What version of Go are you using (go version
)?
❯ g version go version devel go1.18-293ecd8 Tue Feb 15 22:54:38 2022 +0000 linux/amd64
Does this issue reproduce with the latest release?
1.18beta1, beta2 & gotip
What operating system and processor architecture are you using (go env
)?
go env
Output
❯ g env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/karitham/.cache/go-build" GOENV="/home/karitham/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/karitham/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/karitham/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/karitham/sdk/gotip" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/karitham/sdk/gotip/pkg/tool/linux_amd64" GOVCS="" GOVERSION="devel go1.18-293ecd8 Tue Feb 15 22:54:38 2022 +0000" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/karitham/corde/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4188918709=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Using type parameters, I get a compiler panic in an assignment.
I have tried extremely hard to provide a better program, but haven't managed to reproduce the bug easily on the playground.
See https://github.com/Karitham/corde/blob/error/compiler-panic/components/interactions.go#L148-L156 for the whole codebase with the log
What did you expect to see?
Either a compile error that makes sense, or my program building (most likely the second one, but I'm not familiar enough with generics yet to expect my code to be 100% valid)
What did you see instead?
Nonsensical error message and/or compiler panic
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.