aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-03-26 06:55:39 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-03-26 06:55:39 +0000
commit1b2265295a971edc5083140d8aeaa944534916a3 (patch)
tree5934302fc668ef6709812dd9066946ce4c184e71 /gcc/doc
parent6686e0bc1e8b83aed19f383b527bc67b5ba53480 (diff)
downloadgcc-1b2265295a971edc5083140d8aeaa944534916a3.zip
gcc-1b2265295a971edc5083140d8aeaa944534916a3.tar.gz
gcc-1b2265295a971edc5083140d8aeaa944534916a3.tar.bz2
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
Diffstat (limited to 'gcc/doc')
-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 c0da713..90bf6d8 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