Descriptioncmd/cgo: given typedef struct S T, make C.T and C.struct_S interchangeable
For incomplete struct S, C.T and C.struct_S were interchangeable in Go 1.2
and earlier, because all incomplete types were interchangeable
(even C.struct_S1 and C.struct_S2).
CL 76450043, which fixed issue 7409, made different incomplete types
different from Go's point of view, so that they were no longer completely
interchangeable.
However, imprecision about C.T and C.struct_S - really the same
underlying C type - is the one behavior enabled by the bug that
is most likely to be depended on by existing cgo code.
Explicitly allow it, to keep that code working.
Fixes issue 7786.
Patch Set 1 #Patch Set 2 : diff -r a6e0219d9967 https://code.google.com/p/go/ #Patch Set 3 : diff -r eedf259bba6f https://code.google.com/p/go/ #Patch Set 4 : diff -r eedf259bba6f https://code.google.com/p/go/ #
Total comments: 8
Patch Set 5 : diff -r f781e2c0c3f5 https://code.google.com/p/go/ #
Total comments: 1
Patch Set 6 : diff -r b8e9497247d2 https://code.google.com/p/go/ #
MessagesTotal messages: 10
|