PR c/71265
* c-decl.c (c_make_fname_decl): Don't check seen_error.
+ PR c/71266
+ * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
+
2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
* c-parser.c (c_parser_oacc_declare): Add support for
continue;
/* If we got something other than a PARM_DECL it is an error. */
if (TREE_CODE (decl) != PARM_DECL)
- error_at (DECL_SOURCE_LOCATION (decl),
- "%qD declared as a non-parameter", decl);
+ {
+ error_at (DECL_SOURCE_LOCATION (decl),
+ "%qD declared as a non-parameter", decl);
+ continue;
+ }
/* If the declaration is already marked, we have a duplicate
name. Complain and ignore the duplicate. */
else if (seen_args.contains (decl))
PR c/71265
* gcc.dg/noncompile/pr71265.c: New test.
+ PR c/71266
+ * gcc.dg/noncompile/old-style-parm-3.c: New test.
+
2016-05-25 Nathan Sidwell <nathan@acm.org>
* gcc.c-torture/execute/921110-1.c: Fix abort decl.