Skip to content
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

go/types: Identical panics with unreachable if first argument is nil #15173

Closed
dominikh opened this issue Apr 7, 2016 · 1 comment
Closed
Milestone

Comments

@dominikh
Copy link
Member

dominikh commented Apr 7, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.6 linux/amd64
    go version devel +121c434 Thu Apr 7 09:57:06 2016 +0000 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
  3. What did you do?
    Run http://play.golang.org/p/7MLy8FEed8
  4. What did you expect to see?
    I expected types.Identical to return false
  5. What did you see instead?
    It panics:
go run /tmp/foo.go         
func(i int) reflect.Value
panic: unreachable

goroutine 1 [running]:
panic(0x610f60, 0xc823c6b3a0)
    /usr/lib/go/src/runtime/panic.go:464 +0x3e6
go/types.unreachable()
    /usr/lib/go/src/go/types/errors.go:23 +0x65
go/types.identical(0x0, 0x0, 0x7f89526f0360, 0xc823c5e7e0, 0x0, 0xc82008a008)
    /usr/lib/go/src/go/types/predicates.go:281 +0x2f1
go/types.Identical(0x0, 0x0, 0x7f89526f0360, 0xc823c5e7e0, 0x0)
    /usr/lib/go/src/go/types/predicates.go:115 +0x48
main.main()
    /tmp/foo.go:23 +0x356
exit status 2
@bradfitz bradfitz added this to the Go1.7 milestone Apr 7, 2016
@bradfitz
Copy link
Contributor

bradfitz commented Apr 7, 2016

/cc @alandonovan @griesemer

@golang golang locked and limited conversation to collaborators Apr 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants