]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add go1.5 note about change to zero-sized fields in cgo
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Jul 2015 16:01:22 +0000 (09:01 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 20:12:06 +0000 (20:12 +0000)
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 <crawshaw@golang.org>
doc/go1.5.html

index 4e173d130a9cdeda4938e1179174e74a431f39c0..12a8cca17a17f4e10a5ed0460b1fce527f2cd369 100644 (file)
@@ -598,6 +598,12 @@ invalid when the current working directory changes.
 On Windows, cgo now uses external linking by default.
 </p>
 
+<p>
+When a C struct ends with a zero-sized field, but the struct itself is
+not zero-sized, Go code can no longer refer to the zero-sized field.
+Any such references will have to be rewritten.
+</p>
+
 <h2 id="performance">Performance</h2>
 
 <p>