* decl.c (store_parm_decls): Remove check for void parm.
authorJason Merrill <jason@redhat.com>
Mon, 11 Jul 2016 16:56:26 +0000 (12:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 11 Jul 2016 16:56:26 +0000 (12:56 -0400)
From-SVN: r238214

gcc/cp/ChangeLog
gcc/cp/decl.c

index e70e102c6e35d93138dad5e0fdc5da3bb43be0f4..f7f7ba3ce34982b25976ae35895e7a51cd000f02 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        * cp-tree.h: Unpoison lvalue_p.
index c86a131d4894ba040d65e6c35b7c454a93473e6f..09bb767c48e435a020704ece621b81d26a48937d 100644 (file)
@@ -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,