]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
extend.texi (Empty Structures): Correct description of G++'s handling of these struct...
authorMark Mitchell <mark@codesourcery.com>
Tue, 15 Apr 2003 02:28:17 +0000 (02:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 15 Apr 2003 02:28:17 +0000 (02:28 +0000)
* doc/extend.texi (Empty Structures): Correct description of G++'s
handling of these structures.

From-SVN: r65618

gcc/ChangeLog
gcc/doc/extend.texi

index 0aa770c92db20fe050533e623e0c103a08e9ddf8..04a7785c24350a76cac75a8faef4e4da9062e494 100644 (file)
@@ -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.
 
index f5a2c110fbcf2153b6d1b1ac739898709459b9a3..7a6c112319ca84762da2dd6518e4f7c76c50283e 100644 (file)
@@ -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