This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/10826: [3.3/3.4 regression] Anonymous union regression
- From: bangerth at dealii dot org
- To: bartoldeman at users dot sourceforge dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 21 May 2003 13:56:21 -0000
- Subject: Re: c/10826: [3.3/3.4 regression] Anonymous union regression
- Reply-to: bangerth at dealii dot org, bartoldeman at users dot sourceforge dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: [3.3/3.4 regression] Anonymous union regression
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Wed May 21 13:56:20 2003
State-Changed-Why:
Not a bug, but previously accepted erroneously. I now also
see what rth meant: if you write "union type {...}" you
really _declare_ a nested type. That explains why the
compiler says that there is no such member. Only if you
omit the type name, is this the declaration of an anonymous
union, which not only declares a type, but also a "member
variable" (in C++ speak).
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10826