-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/compile: internal compiler error: agen: unknown op CONV u(2) l(10) tc(1) implicit(1) #10219
Comments
It is worth noting that package |
Still happens on tip. |
This is a compiler crash on a valid program. The program builds successfully with gccgo. The bug appears to be related to inlining. |
Also reproduces with Go 1.3.3 and Go 1.2.2, so not a recent regression. Here's a slightly smaller reproduction. The original error/report is F. There's also a different error message via G. bug.go: package bug
import "bug/wrapper"
func test() {
wrapper.B.F()
wrapper.B.G()
} wrapper.go: package wrapper
import "bug/base"
var B base.T base.go: package base
type str string
var m = struct{ str }{}
type T struct{}
func (T) F() {
r := m
_ = r
}
func (T) G() {
r := struct{ str }{str("foo")}
_ = r
} |
CL https://golang.org/cl/12241 mentions this issue. |
How to reproduce:
yields
The text was updated successfully, but these errors were encountered: