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:
Steve Ellcey 2009-02-10 16:33:19 +00:00 committed by Steve Ellcey
parent 9b43d37b83
commit a03813c899
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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))
{