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
Closed

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

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

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 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
Copy link
Contributor

Comment 1:

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

@rsc
Copy link
Contributor

rsc commented Oct 18, 2013

Comment 2:

This issue was closed by revision dbe2eac.

Status changed to Fixed.

@adg
Copy link
Contributor

adg commented Nov 1, 2013

Comment 3:

This issue was closed by revision d3272d5cc1d9.

@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
««« 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
Development

No branches or pull requests

5 participants