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

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).