This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7844: Function declarations parsed incorrectly
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, kparz at iastate dot edu, nobody at gcc dot gnu dot org
- Date: 13 Sep 2002 16:03:47 -0000
- Subject: Re: c++/7844: Function declarations parsed incorrectly
- Reply-to: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, kparz at iastate dot edu, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Function declarations parsed incorrectly
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Sep 13 09:03:45 2002
State-Changed-Why:
Not a bug.
The declaration of 'foo' is parsed as
void foo(int I)
i.e., a function accepting an integer parameter named 'I'.
The 'I' inside 'foo' hides the global typedef 'I'.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7844