From: Jason Merrill Date: Mon, 11 Jul 2016 16:56:26 +0000 (-0400) Subject: * decl.c (store_parm_decls): Remove check for void parm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a54f10dbb88b9cffb3794492f2dd9a22822d619;p=gcc.git * decl.c (store_parm_decls): Remove check for void parm. From-SVN: r238214 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e70e102c6e3..f7f7ba3ce34 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2016-07-11 Jason Merrill + + * decl.c (store_parm_decls): Remove check for void parm. + 2016-07-08 Jason Merrill * cp-tree.h: Unpoison lvalue_p. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c86a131d489..09bb767c48e 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -14376,13 +14376,7 @@ store_parm_decls (tree current_function_parms) { next = DECL_CHAIN (parm); if (TREE_CODE (parm) == PARM_DECL) - { - if (DECL_NAME (parm) == NULL_TREE - || !VOID_TYPE_P (parm)) - pushdecl (parm); - else - error ("parameter %qD declared void", parm); - } + pushdecl (parm); else { /* If we find an enum constant or a type tag,