aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-04-15 02:28:17 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-04-15 02:28:17 +0000
commitdb0b376eb938de6ee819e751c0c13d4faf5a2dda (patch)
tree951e97381f53f3587a90802b65ef52430fad0f7b
parent355d89939212294d4b0d1cf9bc3cd806eb6d7a84 (diff)
downloadgcc-db0b376eb938de6ee819e751c0c13d4faf5a2dda.zip
gcc-db0b376eb938de6ee819e751c0c13d4faf5a2dda.tar.gz
gcc-db0b376eb938de6ee819e751c0c13d4faf5a2dda.tar.bz2
extend.texi (Empty Structures): Correct description of G++'s handling of these structures.
* doc/extend.texi (Empty Structures): Correct description of G++'s handling of these structures. From-SVN: r65618
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/doc/extend.texi5
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0aa770c..04a7785 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2003-04-14 Mark Mitchell <mark@codesourcery.com>
+ * doc/extend.texi (Empty Structures): Correct description of G++'s
+ handling of these structures.
+
* c-decl.c (grokdeclarator): Reject extern redeclarations of
static variables.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index f5a2c11..7a6c112 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -1,4 +1,4 @@
-@c Copyright (C) 1988,1989,1992,1993,1994,1996,1998,1999,2000,2001,2002,
+@c Copyright (C) 1988,1989,1992,1993,1994,1996,1998,1999,2000,2001,2002, 2003,
@c 2003 Free Software Foundation, Inc.
@c This is part of the GCC manual.
@c For copying conditions, see the file gcc.texi.
@@ -1372,7 +1372,8 @@ struct empty @{
@end example
The structure will have size zero. In C++, empty structures are part
-of the language, and the language standard says they have size 1.
+of the language. G++ treats empty structures as if they had a single
+member of type @code{char}.
@node Variable Length
@section Arrays of Variable Length