This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13717] duplicated parameter name not caught ?
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 10:42:58 -0000
- Subject: [Bug c++/13717] duplicated parameter name not caught ?
- References: <bug-13717-1563@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dcb314 at hotmail dot com 2006-03-15 10:42 -------
(In reply to comment #0)
> The one liner
>
> void f( int fred, char * fred);
>
> is IMHO illegal code because fred is the name of two parameters.
I just checked gcc 4.2 and it is broken there as well.
Even adding flags -Wall -ansi -pedantic doesn't help
--
dcb314 at hotmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13717