(store_parm_decls): Change type of void parameter to error_mark_node.
From-SVN: r1246
This commit is contained in:
parent
9a856ec7db
commit
a4faa7cc6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user