Commit 0ad7e054 by Richard Sandiford Committed by Richard Sandiford

c-parser.c (c_parser_struct_declaration): Check for a null return.

gcc/
	* c-parser.c (c_parser_struct_declaration): Check for a null return.

From-SVN: r128459
parent e9c15f6e
2007-09-13 Richard Sandiford <richard@codesourcery.com>
* c-parser.c (c_parser_struct_declaration): Check for a null return.
2007-09-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR driver/33309
......@@ -2033,7 +2033,8 @@ c_parser_struct_declaration (c_parser *parser)
tree attrs = NULL;
ret = grokfield (build_id_declarator (NULL_TREE), specs,
NULL_TREE, &attrs);
decl_attributes (&ret, attrs, 0);
if (ret)
decl_attributes (&ret, attrs, 0);
}
return ret;
}
......
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