Skip to content

cmd/compile: <autogenerated>:1: internal compiler error: dictionary for anyArr[go.shape.*uint8_0].Len should only use concrete types: go.shape.*uint8_0 #58332

@fthvgb1

Description

@fthvgb1

What version of Go are you using (go version)?

$ go version
go version go1.18.10 linux/amd64

Does this issue reproduce with the latest release?

it happend only 1.18.
1.19,1.20 are normal.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.10"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/code/wp-go/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-build3258465993=/tmp/go-build -gno-record-gcc-switches"

What did you do?

building exec binary with my code github.com/fthvgb1/wp-go

go build --race -o wgo -gcflags "all=-N -l" internal/cmd/main.go

What did you expect to see?

builded runnable binray

What did you see instead?

# github.com/fthvgb1/wp-go/internal/plugins
:1: internal compiler error: dictionary for anyArr[go.shape.*uint8_0].Len should only use concrete types: go.shape.*uint8_0

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions