This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug c++/13717] New: duplicated parameter name not caught ?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]