-
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: missing type [Go 1.18 Beta 2] #51360
Comments
Thanks for reporting this. Tentatively putting it in the 1.18 milestone with no relblocker label since the compiler is crashing on an invalid program. |
This is perhaps stating the obvious, but have you tried with go1.18rc1 or Go master (https://pkg.go.dev/golang.org/dl/gotip)? beta2 is nearly a month old at this point. |
@mvdan It fails on the tip playground which is basically up-to-date. So this is definitively a type-checker bug. Must be some trivial oversight given that this just passes. Sigh. |
I hadn't noticed the gotip URL parameter in the playground link, good point :) |
Looks like some error is supressed where it shouldn't. package p
func _() {
len.Println()
} Trace:
|
Change https://go.dev/cl/388054 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/u5yZjTiK8aF?v=gotip
What did you expect to see?
./prog.go:6:13: use of builtin cap not in function call
What did you see instead?
./prog.go:6:13: internal compiler error: missing type for &{0xc00038af60 [0xc00038af90] false {{{0xc00038af30 6 13}}}} (*syntax.CallExpr)
The text was updated successfully, but these errors were encountered: