Apparently some users would like to see what happens to omitted field
members when initializing a structure in GCC docs.

Ok for trunk?

2014-03-25  Marek Polacek  <pola...@redhat.com>

        PR c/39525
        * doc/extend.texi (Designated Inits): Describe what happens to omitted
        field members.

diff --git gcc/doc/extend.texi gcc/doc/extend.texi
index c0da713..90bf6d8 100644
--- gcc/doc/extend.texi
+++ 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

        Marek

Reply via email to