cmd/cgo: cgo treats pointer to fixed-length array as unsafe.Pointer when CC=gcc #29909
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (go version)?
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using?
gcc version:
clang version:
What did you do?
First, you'll need some files:
demo.h
demo.c
main.go
What did you expect to see?
When running:
I expected to see:
What did you see instead?
When running:
I saw:
Additional Notes
If I use clang instead of gcc, the program compiles and runs as expected.
The text was updated successfully, but these errors were encountered: