This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/6660
On Wed, May 29, 2002 at 02:34:14PM -0400, Jim Wilson wrote:
> A normal struct/union member is "<type> <name>;". An anonymous struct/union
> member is "<type>;", where <type> is required to be a struct or union type.
That's not how the feature is described in the C++ standard.
In paragraph 9.5/2 it is described as
union { member-specification } ;
It is an obvious extension to allow struct instead of union.
I think _that_ is much clearer than "type;" where type has
a set of constraints.
r~