This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5219: Wishlist : scope of typedef doesnt include typedef itself
- From: neil at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, siward dot de dot groot at worldonline dot nl
- Date: 30 Dec 2001 09:35:14 -0000
- Subject: Re: c/5219: Wishlist : scope of typedef doesnt include typedef itself
- Reply-to: neil at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, siward dot de dot groot at worldonline dot nl, gcc-gnats at gcc dot gnu dot org
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