re PR c/91815 (questionable error on type definition at file scope)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 20 Sep 2019 09:11:20 +0000 (09:11 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 20 Sep 2019 09:11:20 +0000 (09:11 +0000)
commit522da4c233cb626f66e413dabb86a0a78adaafce
treea0abe9960690bcc01823bad777578966aa454173
parent6e222b2a3aede20f3093802d1649e75848e3bd2b
re PR c/91815 (questionable error on type definition at file scope)

PR c/91815
* c-decl.c (pushdecl): In C detect duplicate declarations across scopes
of identifiers in the external scope only for variables and functions.

From-SVN: r275992
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/typedef-var-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/typedef-var-2.c [new file with mode: 0644]