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
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\chenchong\AppData\Local\go-build
set GOENV=C:\Users\chenchong\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\chenchong\.go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\chenchong\.go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.com.cn,direct
set GOROOT=D:\Developer\Tools\go1.18
set GOSUMDB=off
set GOTMPDIR=
set GOTOOLDIR=D:\Developer\Tools\go1.18\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.18
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\CHENCH~1\AppData\Local\Temp\go-build107498046=/tmp/go-build -gno-record-gcc-switches
问题 / issue
无法借助编译器得到更明确的指导信息
No more explicit guidance can be obtained from the compiler
GOROOT=D:\Developer\Tools\go1.18 #gosetup
GOPATH=C:\Users\chenchong\.go #gosetup
D:\Developer\Tools\go1.18\bin\go.exe test -c -o C:\Users\chenchong\AppData\Local\Temp\GoLand\___structure_list__TestNewNode__1_.test.exe -gcflags "all=-N -l" structure_list #gosetup
# structure_list [structure_list.test]
<autogenerated>:1: internal compiler error: panic: runtime error: index out of range [0] with length 0
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
求助 / help
代码经个人审视多次,暂时没有找到问题,现在不知道如何处理。还请相关了有遇到类似问题的提供解答 。
The code has been inspected for many times, but no problem has been found. Now I don't know how to deal with it. Please also provide solutions for those who have encountered similar problems.
The text was updated successfully, but these errors were encountered:
cherrymui
changed the title
panic: runtime error: index out of range [0] with length 0
cmd/compile: ICE: index out of range [0] with length 0
Apr 8, 2022
This fails with Go 1.18, but passes with Go tip and with release-branch.go1.18 branch. So this is already fixed and will be included in the Go 1.18.1 release next week.
环境 / environment
问题 / issue
无法借助编译器得到更明确的指导信息
No more explicit guidance can be obtained from the compiler
代码 / code
node.go
go.mod
输出 / output
求助 / help
代码经个人审视多次,暂时没有找到问题,现在不知道如何处理。还请相关了有遇到类似问题的提供解答 。
The code has been inspected for many times, but no problem has been found. Now I don't know how to deal with it. Please also provide solutions for those who have encountered similar problems.
The text was updated successfully, but these errors were encountered: