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

cmd/cgo: wrong line number for compile error #6563

Closed
dominikh opened this issue Oct 10, 2013 · 3 comments

Comments

@dominikh
Copy link
Member

commented Oct 10, 2013

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Download and compile http://play.golang.org/p/xvSyfjXl-D
2.
3.

What is the expected output?
./xvSyfjXl-D.go:8: cannot use s (type string) as type C.size_t in function argument

What do you see instead?
./xvSyfjXl-D.go:7: cannot use s (type string) as type C.size_t in function argument

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux

Which version are you using?  (run 'go version')
go version devel +3f38e968e072 Wed Oct 09 13:52:29 2013 -0700 linux/amd64

Please provide any additional information below.
The error is reported for the previous line.
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Oct 10, 2013

Comment 1:

Labels changed: added priority-later, go1.3, removed priority-triage.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2013

Comment 2:

This issue was closed by revision dbe2eac.

Status changed to Fixed.

@adg

This comment has been minimized.

Copy link
Contributor

commented Nov 1, 2013

Comment 3:

This issue was closed by revision d3272d5cc1d9.

@dominikh dominikh added fixed labels Nov 1, 2013

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015

@rsc rsc removed the go1.3 label Apr 14, 2015

adg added a commit that referenced this issue May 11, 2015
[release-branch.go1.2] cmd/cgo: fix line number in an error message
««« CL 14870046 / b508daf6dae6
cmd/cgo: fix line number in an error message

Fixes #6563.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/14870046
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/20150045

@golang golang locked and limited conversation to collaborators Jun 25, 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
5 participants
You can’t perform that action at this time.