Commit a03813c8 by Steve Ellcey Committed by Steve Ellcey

re PR c/39084 (ice on struct redefinition)

	PR c/39084
	* c-decl.c (start_struct): Return NULL on error.

From-SVN: r144067
parent 9b43d37b
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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment