c/5219: Wishlist : scope of typedef doesnt include typedef itself
neil@gcc.gnu.org
neil@gcc.gnu.org
Sun Dec 30 15:26:00 GMT 2001
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
More information about the Gcc-bugs
mailing list