[Bug c/13728] New: Duplicate parameter names not detected
jsm28 at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 18 02:19:00 GMT 2004
void f (int fred, int fred);
void f2 (int fred, int fred) {}
does not get any diagnostics with current 3.4 or 3.5 CVS. 3.3.2 gives
proper errors (albeit with some duplication):
t.c:1: error: redefinition of `fred'
t.c:1: error: `fred' previously declared here
t.c:2: error: redefinition of `fred'
t.c:2: error: `fred' previously declared here
t.c: In function `f2':
t.c:2: error: redeclaration of `fred'
t.c:2: error: `fred' previously declared here
--
Summary: Duplicate parameter names not detected
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: zack at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
More information about the Gcc-bugs
mailing list