We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version go version go1.18.4 darwin/arm64
it happens with go playground also (with version 1.18)
yes
go env
``` GO111MODULE="" GOARCH="arm64" GOBIN="" GOCACHE="/Users/quannk/Library/Caches/go-build" GOENV="/Users/quannk/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/quannk/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/quannk/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/opt/homebrew/Cellar/go/1.18.4/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/opt/homebrew/Cellar/go/1.18.4/libexec/pkg/tool/darwin_arm64" GOVCS="" GOVERSION="go1.18.4" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/quannk/ad/advertisement/golang/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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/g3/kggtblcx2y14_mlgh0z6pmzc0000gp/T/go-build531919184=/tmp/go-build -gno-record-gcc-switches -fno-common" ```
the bug can be reproduced here:
https://go.dev/play/p/Ckg1z8KKEd8
no error when compile the program
error when compile
./prog.go:7:10: internal compiler error: assertion failed
The text was updated successfully, but these errors were encountered:
this bug is the same with #53762 but it happens on 1.18.4 as well (1.18.4 is marked as stable version)
Sorry, something went wrong.
The patch https://go-review.googlesource.com/c/go/+/416736 can fix this issue also.
Duplicate of #53762
No branches or pull requests
What version of Go are you using (
go version
)?it happens with go playground also (with version 1.18)
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
the bug can be reproduced here:
https://go.dev/play/p/Ckg1z8KKEd8
What did you expect to see?
no error when compile the program
What did you see instead?
error when compile
The text was updated successfully, but these errors were encountered: