cmd/cgo: build typedef fail in clang but ok in gcc #20129
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go 1.8
What operating system and processor architecture are you using (
go env
)?mac os 10 & ubuntu 16.04
What did you do?
CC=clang CGO_ENABLE=1 go build -v void.go -->fail
command-line-arguments
command-line-arguments
./void.go:47:10: error: field has incomplete type 'GLvoid' (aka 'void')
CC=gcc CGO_ENABLE=1 go build -o void -v void.go -->ok
command-line-arguments
What did you expect to see?
all build ok in both gcc and clang
What did you see instead?
clang build fail but gcc ok
The text was updated successfully, but these errors were encountered: