This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13728] New: Duplicate parameter names not detected
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2004 02:18:59 -0000
- Subject: [Bug c/13728] New: Duplicate parameter names not detected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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