Skip to content

cmd/compile: internal compiler error: assigning XXX (type driver.Value) to parameter <S> (type interface {}) #50169

@lstoll

Description

@lstoll

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

$ go1.18beta1 version
go version go1.18beta1 darwin/amd64

Does this issue reproduce with the latest release?

Yes (latest beta release + tip on go.dev/play)

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

go env Output
$ go1.18beta1 env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/lincoln.stoll/Library/Caches/go-build"
GOENV="/Users/lincoln.stoll/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/lincoln.stoll/go/pkg/mod"
GONOPROXY="git.dev.pardot.com,git.soma.salesforce.com,github.com/heroku"
GONOSUMDB="git.dev.pardot.com,git.soma.salesforce.com,github.com/heroku"
GOOS="darwin"
GOPATH="/Users/lincoln.stoll/go"
GOPRIVATE="git.dev.pardot.com,git.soma.salesforce.com,github.com/heroku"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/lincoln.stoll/sdk/go1.18beta1"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/lincoln.stoll/sdk/go1.18beta1/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18beta1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/lincoln.stoll/src/identity/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 x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/k6/4px2pzjx1_j28kh4wh0cfbxc0000gq/T/go-build4237473592=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Received an internal compiler error running go 1.18 beta against an existing codebase.

$ go1.18beta1 run errorer.go 
# command-line-arguments
./errorer.go:21:33: internal compiler error: assigning encv (type driver.Value) to parameter <S> (type interface {})

Please file a bug report including a short program that triggers the error.

The smallest repro code to cause this can be found at https://go.dev/play/p/lrcypQGydEi?v=gotip , where the compiler error is also evident.

What did you expect to see?

Successful compilation, works on 1.17 and earlier releases.

What did you see instead?

Internal compilation error, with request to file a bug report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions