c-decl.c (pushdecl): When an extern declaration at block scope refers to a visible...
authorJoseph Myers <jsm@polyomino.org.uk>
Tue, 5 Oct 2004 19:54:26 +0000 (20:54 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 5 Oct 2004 19:54:26 +0000 (20:54 +0100)
commit1b36c8183586b92176cd67dc2250623632120a4c
treefd7f6fee9d8f05210df58bc5a67a9559ca8f660e
parent95740bfc809797d22f2597582df641daf537e38e
c-decl.c (pushdecl): When an extern declaration at block scope refers to a visible entity with...

* c-decl.c (pushdecl): When an extern declaration at block scope
refers to a visible entity with internal linkage, use the old DECL
rather than the new one.

testsuite:
* gcc.c-torture/compile/20041005-1.c: New test.

From-SVN: r88570
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20041005-1.c [new file with mode: 0644]