mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 14:10:56 +08:00
re PR c/39084 (ice on struct redefinition)
PR c/39084 * c-decl.c (start_struct): Return NULL on error. From-SVN: r144067
This commit is contained in:
parent
9b43d37b83
commit
a03813c899
@ -1,3 +1,8 @@
|
||||
2009-02-10 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
PR c/39084
|
||||
* c-decl.c (start_struct): Return NULL on error.
|
||||
|
||||
2009-02-10 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/39124
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user