This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/13717] New: duplicated parameter name not caught ?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2004 00:29:13 +0100
- Subject: Re: [Bug c++/13717] New: duplicated parameter name not caught ?
- Organization: Integrable Solutions
- References: <20040117112758.13717.d.binderman@virgin.net>
"d dot binderman at virgin dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| The one liner
|
| void f( int fred, char * fred);
|
| is IMHO illegal code because fred is the name of two parameters.
Yes, it invalid in C++. This bug should be easier to fix in
GCC-3.4.x/g++ than GCC-3.3.x/g++.
-- Gaby