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
Error encountered while trial of building some trivial example:
package main
import "fmt"
type Ab struct {
v float64
i int
}
func main() {
t := Ab{ 144&.0, 445 }
fmt.Println(t)
}
Compiler (go clang 1.12.12) just prints following error:
# command-line-arguments
./internal-error.go:11:17: internal compiler error: binaryOp: bad operation: 144 & 0
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
I reproduced this bug on a official version go 1.12.12 (clang). gccgo print correct error that describes syntax error:
./internal-error.go:11:17: error: expected integer type
11 | t := Ab{ 144&.0, 445 }
|
Error encountered while trial of building some trivial example:
Compiler (go clang 1.12.12) just prints following error:
I reproduced this bug on a official version go 1.12.12 (clang). gccgo print correct error that describes syntax error:
Go version: go version go1.12.12 linux/amd64
GO env:
The text was updated successfully, but these errors were encountered: