re PR c/9928 (ICE on duplicate enum declaration)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 12 Mar 2003 09:54:38 +0000 (10:54 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 12 Mar 2003 09:54:38 +0000 (09:54 +0000)
commit8a7d6cb3d82be44da036f45e244d01cd4f9ab0e5
tree2b6f90fa1ae94ee69866e8a505fb8ad0cde87159
parentdb1077d3073cd525c15c5b957258685bfa224c18
re PR c/9928 (ICE on duplicate enum declaration)

PR c/9928
* c-decl.c (duplicate_decls): Discard the initializer of the new decl
only if it is a VAR_DECL.

From-SVN: r64235
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/decl-3.c [new file with mode: 0644]