Skip to content

Commit a5d23fc

Browse files
ianlancetaylorrsc
authored andcommitted
doc: add go1.5 note about change to zero-sized fields in cgo
This documents the change made in https://golang.org/cl/12864 for https://golang.org/issue/11925. Update #11925. Change-Id: Id09f2a489ea947a725ed12c9cf793e5daef07a06 Reviewed-on: https://go-review.googlesource.com/12866 Reviewed-by: David Crawshaw <[email protected]>
1 parent 4bd8040 commit a5d23fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/go1.5.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,12 @@ <h3 id="cgo">Cgo</h3>
598598
On Windows, cgo now uses external linking by default.
599599
</p>
600600

601+
<p>
602+
When a C struct ends with a zero-sized field, but the struct itself is
603+
not zero-sized, Go code can no longer refer to the zero-sized field.
604+
Any such references will have to be rewritten.
605+
</p>
606+
601607
<h2 id="performance">Performance</h2>
602608

603609
<p>

0 commit comments

Comments
 (0)