(store_parm_decls): Change type of void parameter to error_mark_node.

From-SVN: r1246
This commit is contained in:
Jim Wilson 1992-06-23 16:15:52 -07:00
parent 9a856ec7db
commit a4faa7cc6e

View File

@ -5183,7 +5183,12 @@ store_parm_decls ()
if (DECL_NAME (parm) == 0)
error_with_decl (parm, "parameter name omitted");
else if (TREE_TYPE (parm) == void_type_node)
error_with_decl (parm, "parameter `%s' declared void");
{
error_with_decl (parm, "parameter `%s' declared void");
/* Change the type to error_mark_node so this parameter
will be ignored by assign_parms. */
TREE_TYPE (parm) = error_mark_node;
}
pushdecl (parm);
}
else