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

d dot binderman at virgin dot net gcc-bugzilla@gcc.gnu.org
Sat Jan 17 11:28:00 GMT 2004


The one liner

void f( int fred, char * fred);

is IMHO illegal code because fred is the name of two parameters.

I couldn't get gcc332 to find the bug in this code.
This is salted down from real code in Fedora Core 1.

-- 
           Summary: duplicated parameter name not caught ?
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot binderman at virgin dot net
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: linux-i386


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13717



More information about the Gcc-bugs mailing list