public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13728] New: Duplicate parameter names not detected
@ 2004-01-18 2:19 jsm28 at gcc dot gnu dot org
2004-01-18 8:14 ` [Bug c/13728] " dhazeghi at yahoo dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2004-01-18 2:19 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/13728] Duplicate parameter names not detected
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
@ 2004-01-18 8:14 ` dhazeghi at yahoo dot com
2004-01-18 9:21 ` [Bug c/13728] [3.4/3.5 regression] " dhazeghi at yahoo dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-18 8:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-18 08:14 -------
Confirmed on mainline/3.4 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-01-18 08:14:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/13728] [3.4/3.5 regression] Duplicate parameter names not detected
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
2004-01-18 8:14 ` [Bug c/13728] " dhazeghi at yahoo dot com
@ 2004-01-18 9:21 ` dhazeghi at yahoo dot com
2004-02-10 23:27 ` zack at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-18 9:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-18 09:21 -------
Oops, I guess that's a regression.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|diagnostic |accepts-invalid
Summary|Duplicate parameter names |[3.4/3.5 regression]
|not detected |Duplicate parameter names
| |not detected
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/13728] [3.4/3.5 regression] Duplicate parameter names not detected
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
2004-01-18 8:14 ` [Bug c/13728] " dhazeghi at yahoo dot com
2004-01-18 9:21 ` [Bug c/13728] [3.4/3.5 regression] " dhazeghi at yahoo dot com
@ 2004-02-10 23:27 ` zack at gcc dot gnu dot org
2004-03-04 5:49 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-02-10 23:27 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2004-01-18 08:14:40 |2004-02-10 23:27:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/13728] [3.4/3.5 regression] Duplicate parameter names not detected
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-02-10 23:27 ` zack at gcc dot gnu dot org
@ 2004-03-04 5:49 ` cvs-commit at gcc dot gnu dot org
2004-03-04 5:53 ` cvs-commit at gcc dot gnu dot org
2004-03-04 5:55 ` zack at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-04 5:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-04 05:49 -------
Subject: Bug 13728
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: zack@gcc.gnu.org 2004-03-04 05:49:07
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: decl-4.c
Log message:
PR 13728
* c-decl.c (diagnose_mismatched_decls): Issue an error for two
parameters with the same name, unless one is a forward decl.
Do not issue a redundant-redeclaration warning for forward
decls of parameters.
* gcc.dg/decl-4.c: New testcase.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3030&r2=2.3031
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.481&r2=1.482
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3565&r2=1.3566
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/decl-4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/13728] [3.4/3.5 regression] Duplicate parameter names not detected
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-03-04 5:49 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-04 5:53 ` cvs-commit at gcc dot gnu dot org
2004-03-04 5:55 ` zack at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-04 5:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-04 05:53 -------
Subject: Bug 13728
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: zack@gcc.gnu.org 2004-03-04 05:53:35
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: decl-4.c
Log message:
PR 13728
* c-decl.c (diagnose_mismatched_decls): Issue an error for two
parameters with the same name, unless one is a forward decl.
Do not issue a redundant-redeclaration warning for forward
decls of parameters.
* gcc.dg/decl-4.c: New testcase.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.285&r2=2.2326.2.286
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.470.4.5&r2=1.470.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.119&r2=1.3389.2.120
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/decl-4.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/13728] [3.4/3.5 regression] Duplicate parameter names not detected
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-03-04 5:53 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-04 5:55 ` zack at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-03-04 5:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-03-04 05:55 -------
there
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13728
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-03-04 5:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-18 2:19 [Bug c/13728] New: Duplicate parameter names not detected jsm28 at gcc dot gnu dot org
2004-01-18 8:14 ` [Bug c/13728] " dhazeghi at yahoo dot com
2004-01-18 9:21 ` [Bug c/13728] [3.4/3.5 regression] " dhazeghi at yahoo dot com
2004-02-10 23:27 ` zack at gcc dot gnu dot org
2004-03-04 5:49 ` cvs-commit at gcc dot gnu dot org
2004-03-04 5:53 ` cvs-commit at gcc dot gnu dot org
2004-03-04 5:55 ` zack at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).