aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e1f74a1f9d..74891b1e15 100644
--- a/parse.y
+++ b/parse.y
@@ -4160,6 +4160,8 @@ f_norm_arg : tCONSTANT
| tIDENTIFIER
{
/*%%%*/
+ if (!is_local_id($1))
+ yyerror("formal argument must be local variable");
shadowing_lvar($1);
/*%
%*/
@@ -4170,8 +4172,6 @@ f_norm_arg : tCONSTANT
f_arg_item : f_norm_arg
{
/*%%%*/
- if (!is_local_id($1))
- yyerror("formal argument must be local variable");
arg_var($1);
$$ = NEW_ARGS_AUX($1, 1);
/*%