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: Wrong line number in stack trace in this particular panic (from Go stdlib) #6586
Labels
Milestone
Comments
Issue #6585 has been merged into this issue. |
net.(*TCPConn).Close is a method that TCPConn inherits from the conn type, which is an interface. This is presumably a method stub generated by the compiler that translates tcpconn.Close() into tcpconn.conn.Close(). The compiler should generate better line number information for this stub; I'm not sure what it should generate, but dial.go:1 is actively misleading. If we can't think of anything else, it would be better to say <unknown> or <generated> than to say dial.go:1. Labels changed: added priority-later, removed priority-triage. |
rsc
changed the title
cmd/gc: Wrong line number in stack trace in this particular panic (from Go stdlib)
cmd/compile: Wrong line number in stack trace in this particular panic (from Go stdlib)
Jun 8, 2015
1.9 compiler does that:
So this issue is fixed. Closing. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: