From: Richard Kenner Date: Thu, 11 May 1995 23:27:13 +0000 (-0400) Subject: (nested_function, notype_nested_function): Allow old-style arg X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67b0763ea8f42e8e9e4e7bcc001229cf3e629a68;p=platform%2Fupstream%2Fgcc.git (nested_function, notype_nested_function): Allow old-style arg definitions (use xdecls). From-SVN: r9628 --- diff --git a/gcc/c-parse.in b/gcc/c-parse.in index f6bdbe3..b4eea8e 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1193,8 +1193,9 @@ nested_function: pop_c_function_context (); YYERROR1; } - reinit_parse_for_function (); - store_parm_decls (); } + reinit_parse_for_function (); } + xdecls + { store_parm_decls (); } /* This used to use compstmt_or_error. That caused a bug with input `f(g) int g {}', where the use of YYERROR1 above caused an error @@ -1215,8 +1216,9 @@ notype_nested_function: pop_c_function_context (); YYERROR1; } - reinit_parse_for_function (); - store_parm_decls (); } + reinit_parse_for_function (); } + xdecls + { store_parm_decls (); } /* This used to use compstmt_or_error. That caused a bug with input `f(g) int g {}', where the use of YYERROR1 above caused an error