c++/7065: unnamed derived classes/structs are rejected

bangerth@dealii.org bangerth@dealii.org
Thu Jan 23 03:11:00 GMT 2003


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



More information about the Gcc-bugs mailing list