Skip to content

constant handling is broken in cgo at tip #4095

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

Closed
niemeyer opened this issue Sep 18, 2012 · 1 comment
Closed

constant handling is broken in cgo at tip #4095

niemeyer opened this issue Sep 18, 2012 · 1 comment
Milestone

Comments

@niemeyer
Copy link
Contributor

What steps will reproduce the problem?
1. go get launchpad.net/goyaml

What is the expected output? What do you see instead?

Output on 1.0.2:

Nothing. Just works.

Output on tip:

% go install
# launchpad.net/goyaml
inconsistent definitions for C.YAML_DOCUMENT_END_EVENT
inconsistent definitions for C.YAML_STREAM_END_EVENT

Output on tip with extra debug info:

# launchpad.net/goyaml
inconsistent definitions for C.YAML_STREAM_END_EVENT:
&main.Name{Go:"YAML_STREAM_END_EVENT",
Mangle:"_Cconst_YAML_STREAM_END_EVENT", C:"YAML_STREAM_END_EVENT",
Define:"", Kind:"const", Type:(*main.Type)(0xf8400ebb80),
FuncType:(*main.FuncType)(nil), AddError:false, Const:"0x2"} vs.
&main.Name{Go:"YAML_STREAM_END_EVENT",
Mangle:"_Cconst_YAML_STREAM_END_EVENT", C:"YAML_STREAM_END_EVENT",
Define:"", Kind:"const", Type:(*main.Type)(0xf8401acb40),
FuncType:(*main.FuncType)(nil), AddError:false, Const:"0x2"}
inconsistent definitions for C.YAML_DOCUMENT_END_EVENT:
&main.Name{Go:"YAML_DOCUMENT_END_EVENT",
Mangle:"_Cconst_YAML_DOCUMENT_END_EVENT",
C:"YAML_DOCUMENT_END_EVENT", Define:"", Kind:"const",
Type:(*main.Type)(0xf8400eb300), FuncType:(*main.FuncType)(nil), AddError:false,
Const:"0x4"} vs. &main.Name{Go:"YAML_DOCUMENT_END_EVENT",
Mangle:"_Cconst_YAML_DOCUMENT_END_EVENT",
C:"YAML_DOCUMENT_END_EVENT", Define:"", Kind:"const",
Type:(*main.Type)(0xf8401b5d40), FuncType:(*main.FuncType)(nil), AddError:false,
Const:"0x4"}
@niemeyer
Copy link
Contributor Author

Comment 1:

Status changed to Duplicate.

Merged into issue #4054.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@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

3 participants