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
This commit is contained in:
parent
355d899392
commit
db0b376eb9
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user