From: Ian Lance Taylor
Date: Thu, 30 Jul 2015 16:01:22 +0000 (-0700)
Subject: doc: add go1.5 note about change to zero-sized fields in cgo
X-Git-Tag: go1.5rc1~77
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a5d23fceab47ff3f0cfacfecbe74f2f853a6ed1c;p=gostls13.git
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
---
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.
+
+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.
+
+