This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/5219: Wishlist : scope of typedef doesnt include typedef itself


Synopsis: Wishlist : scope of typedef doesnt include typedef itself

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Sun Dec 30 01:35:14 2001
State-Changed-Why:
    Structure tags give the desired functionality.
    
    The problem with your idea is that the compiler doesn't know
    what a treenode is until it has parsed the whole lot.  In particular, it doesn't know it's a type, or if it was
    a mis-typed "unsigned" etc.  This makes the
    parser far more complicated than it currently is,
    would introduce some bizarre messages I'm sure, and for
    little (IMO) gain.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5219


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]