From: Marek Polacek Date: Wed, 26 Mar 2014 06:55:39 +0000 (+0000) Subject: re PR c/39525 ([easy to fix bug] Docs for C99 "designated initializers" isn't clear... X-Git-Tag: releases/gcc-4.9.0~300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2265295a971edc5083140d8aeaa944534916a3;p=thirdparty%2Fgcc.git re PR c/39525 ([easy to fix bug] Docs for C99 "designated initializers" isn't clear what happens to omitted field members) PR c/39525 * doc/extend.texi (Designated Inits): Describe what happens to omitted field members. From-SVN: r208835 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee0df1c23e9b..ff4a21bcf83e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-03-26 Marek Polacek + + PR c/39525 + * doc/extend.texi (Designated Inits): Describe what happens to omitted + field members. + 2014-03-26 Marek Polacek PR other/59545 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index c0da713e8213..90bf6d841a0f 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