diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 9fadad3..491e7bb 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5367,6 +5367,8 @@ start_struct (enum tree_code code, tree name) error ("redefinition of %<union %E%>", name); else error ("redefinition of %<struct %E%>", name); + /* Don't create structures using a name already in use. */ + ref = NULL_TREE; } else if (C_TYPE_BEING_DEFINED (ref)) { |