Open hajimehoshi opened 10 years ago
For what it's worth, Go 1.3 on linux/amd64 using either CC=gcc or CC=clang, C.Foo and C.Bar are now rewritten as _Ctype_struct_Foo and _Ctype_struct_Bar, which are both defined as "struct{}". So the Go compiler now rejects the "foo = bar" assignment because "*_Ctype_struct_Foo" and "*_Ctype_struct_Bar" are distinct types. Thus I think the "expected output" from the issue report is now satisfied, though it might be worthwhile if someone could verify on OS X too.