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: Assigning nil to variable of struct type results in INTERNAL PANIC: unreachable #5800

dominikh opened this issue Jun 27, 2013 · 4 comments


Copy link

What steps will reproduce the problem?
If possible, include a link to a program on
1. Download attached files demo.go and broken.go into the same directory
2. go run demo.go

What is the expected output?
Expected handling of the error, not an internal panic

What do you see instead?
convertUntyped(x = nil (constant nil), target = struct{})
INTERNAL PANIC: unreachable

(See attached log for complete stacktrace)


  1. demo.go (358 bytes)
  2. broken.go (52 bytes)
  3. log.log (2395 bytes)
Copy link

robpike commented Jun 27, 2013

Comment 1:

Labels changed: added priority-soon, removed priority-triage.

Owner changed to @tul-project.

Status changed to Accepted.

Copy link
Member Author

Comment 2:

Is that really the correct owner?

Copy link

minux commented Jun 27, 2013

Comment 3:

Owner changed to @griesemer.

Copy link

Comment 4:

This issue was closed by revision golang/tools@69c2974.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

5 participants