This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7065: unnamed derived classes/structs are rejected
- From: bangerth at dealii dot org
- To: daniel dot frey at aixigo dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 23 Jan 2003 03:01:32 -0000
- Subject: Re: c++/7065: unnamed derived classes/structs are rejected
- Reply-to: bangerth at dealii dot org, daniel dot frey at aixigo dot de, 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: unnamed derived classes/structs are rejected
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 03:01:31 2003
State-Changed-Why:
Fixed with new parser. The only valid use of an unnamed struct
is to either declare a typedef, or to name a variable:
------------------------
class A {};
typedef class : A {} B;
class : A {} a;
------------------
Both uses compile just fine now. That being said, what
an abomination of the language!
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7065