Commit db0b376e by Mark Mitchell Committed by Mark Mitchell

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
parent 355d8993
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.
......
@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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment