Skip to content
New issue

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

internal compiler error: binaryOp: bad operation #31325

Closed
hexaflex-zz opened this issue Apr 7, 2019 · 1 comment
Closed

internal compiler error: binaryOp: bad operation #31325

hexaflex-zz opened this issue Apr 7, 2019 · 1 comment

Comments

@hexaflex-zz
Copy link

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

$ go version

go version go1.12.2 windows/amd64

Does this issue reproduce with the latest release?

Yes.

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

go env Output
$ go env

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\hf\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\code\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
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\hf\AppData\Local\Temp\go-build639447286=/tmp/go-build -gno-record-gcc-switches

What did you do?

https://play.golang.org/p/CAilBT0YfzY

What did you expect to see?

An error message indicating the operation is not supported on floating point values.

What did you see instead?

std\lib.go:80:10: internal compiler error: binaryOp: bad operation: 2.3 ^ 2

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

@cuonglm
Copy link
Member

cuonglm commented Apr 7, 2019

Duplicate of #31060, already fixed in tip

@golang golang locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants