diff options
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0aa770c92db..04a7785c243 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 f5a2c110fbc..7a6c112319c 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 |