Commit 9a54f10d by Jason Merrill Committed by Jason Merrill

* decl.c (store_parm_decls): Remove check for void parm.

From-SVN: r238214
parent 741d3be5
2016-07-11 Jason Merrill <jason@redhat.com>
* decl.c (store_parm_decls): Remove check for void parm.
2016-07-08 Jason Merrill <jason@redhat.com> 2016-07-08 Jason Merrill <jason@redhat.com>
* cp-tree.h: Unpoison lvalue_p. * cp-tree.h: Unpoison lvalue_p.
......
...@@ -14376,13 +14376,7 @@ store_parm_decls (tree current_function_parms) ...@@ -14376,13 +14376,7 @@ store_parm_decls (tree current_function_parms)
{ {
next = DECL_CHAIN (parm); next = DECL_CHAIN (parm);
if (TREE_CODE (parm) == PARM_DECL) if (TREE_CODE (parm) == PARM_DECL)
{ pushdecl (parm);
if (DECL_NAME (parm) == NULL_TREE
|| !VOID_TYPE_P (parm))
pushdecl (parm);
else
error ("parameter %qD declared void", parm);
}
else else
{ {
/* If we find an enum constant or a type tag, /* If we find an enum constant or a type tag,
......
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