Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: internal compiler error: constant type mismatch #21074
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
$ go version go version devel +83fb9c8 Tue Jul 18 21:31:15 2017 +0000 darwin/amd64
at least as per https://github.com/odeke-em/bugs/tree/master/golang/21074.
I get back
$ go test -v # _/Users/emmanuelodeke/Desktop/openSrc/bugs/golang/21074 ./blah.go:5:7: cannot use 1483228800000000000 / time.Second (type time.Duration) as type int64 in const initializer FAIL _/Users/emmanuelodeke/Desktop/openSrc/bugs/golang/21074 [build failed]
Perhaps there is more to add to the bug report than has been reported? If so please help with the full repro, otherwise, please try on the Go1.9beta2 or tip, this seems fixed.