aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-07-30 09:01:22 -0700
committerRuss Cox <rsc@golang.org>2015-07-30 20:12:06 +0000
commita5d23fceab47ff3f0cfacfecbe74f2f853a6ed1c (patch)
tree9f6a15322ecc62d309b3fea48c05b6d64a8e2f90
parent4bd8040d47fce4445ce73278b8528c6784e3ef25 (diff)
downloadgo-a5d23fceab47ff3f0cfacfecbe74f2f853a6ed1c.tar.xz
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 <crawshaw@golang.org>
-rw-r--r--doc/go1.5.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/go1.5.html b/doc/go1.5.html
index 4e173d130a..12a8cca17a 100644
--- a/doc/go1.5.html
+++ b/doc/go1.5.html
@@ -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>