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
When the two package program below is compiled using go1.5.1 (linux/amd64) the build fails with:
$ go build foo.go
# command-line-arguments
./foo.go:6: invalid operation: 1 << uint(bar.f·2) (shift of type float64)
./foo.go:10: tempname called with nil type
./foo.go:10: cannot use autotmp_0001 (type int32) as type float64 in assignment
If the Bar function is included in main, the build completes successfully, which is the expected outcome. The build is also successful with go1.4.2, or if the expression within the float64() is evaluated into a temporary variable.
When the two package program below is compiled using go1.5.1 (linux/amd64) the build fails with:
If the Bar function is included in main, the build completes successfully, which is the expected outcome. The build is also successful with go1.4.2, or if the expression within the float64() is evaluated into a temporary variable.
foo.go
bar/bar.go
See https://groups.google.com/d/topic/golang-nuts/IP1YIOd_PaY/discussion for background.
The text was updated successfully, but these errors were encountered: