c-decl.c (diagnose_mismatched_decls): Give error for external redeclaration of identi...
authorJoseph Myers <jsm@polyomino.org.uk>
Sat, 31 Jul 2004 17:21:27 +0000 (18:21 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 31 Jul 2004 17:21:27 +0000 (18:21 +0100)
commit558d1f815dbe96208954efba3bab256bbe7f106e
tree37c2094176ebe279ec60f8c89c341f5502370a4b
parent2347da644d23390399cc060fe3f2358314efc1b6
c-decl.c (diagnose_mismatched_decls): Give error for external redeclaration of identifier declared with no linkage...

* c-decl.c (diagnose_mismatched_decls): Give error for external
redeclaration of identifier declared with no linkage, not just
warning with -Wtraditional.  Do not check DECL_CONTEXT to give
error for redeclaration with no linkage.

testsuite:
* gcc.dg/redecl-2.c: New test.

From-SVN: r85386
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/redecl-2.c [new file with mode: 0644]