[Bug c++/13717] duplicated parameter name not caught ?
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 15 10:43:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list