Skip to content

Preamble for _cgo_export.h missing uintptr #1046

@gjemiller

Description

@gjemiller
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. cgo foo.go (attached)
2. see that "typedef <something> uintptr" is not included in the
preamble of _cgo_export.h
3. gcc -c _cgo_export.c

What is the expected output?
No error from gcc

What do you see instead?
_cgo_export.h:16: error: expected ‘)’ before ‘p0’
_cgo_export.c:5: error: expected ‘)’ before ‘p0’


What is your $GOOS?  $GOARCH?
linux, 386

Which revision are you using?  (hg identify)
36cb646b1790 tip


Please provide any additional information below.

Attachments:

  1. foo.go (100 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions