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

Closed
dominikh opened this issue Jun 27, 2013 · 4 comments

Comments

@dominikh
Copy link
Member

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

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)

Attachments:

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

robpike commented Jun 27, 2013

Comment 1:

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

Owner changed to @tul-project.

Status changed to Accepted.

@dominikh
Copy link
Member Author

Comment 2:

Is that really the correct owner?

@minux
Copy link
Member

minux commented Jun 27, 2013

Comment 3:

Owner changed to @griesemer.

@griesemer
Copy link
Contributor

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.
Projects
None yet
Development

No branches or pull requests

5 participants