summaryrefslogtreecommitdiff
path: root/gcc/doc/extend.texi
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-26 06:55:39 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-26 06:55:39 +0000
commitf25f1b25ff2e084c6e1ca01b700c29b02a4bd94b (patch)
tree5934302fc668ef6709812dd9066946ce4c184e71 /gcc/doc/extend.texi
parent9375092628642ebde22e7785e814468d94ca6c66 (diff)
downloadgcc-f25f1b25ff2e084c6e1ca01b700c29b02a4bd94b.tar.gz
PR c/39525
* doc/extend.texi (Designated Inits): Describe what happens to omitted field members. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208835 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r--gcc/doc/extend.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index c0da713e821..90bf6d841a0 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -1967,6 +1967,9 @@ Another syntax that has the same meaning, obsolete since GCC 2.5, is
struct point p = @{ y: yvalue, x: xvalue @};
@end smallexample
+Omitted field members are implicitly initialized the same as objects
+that have static storage duration.
+
@cindex designators
The @samp{[@var{index}]} or @samp{.@var{fieldname}} is known as a
@dfn{designator}. You can also use a designator (or the obsolete colon