summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 28ac7d6855..6629df2d35 100644
--- a/parse.y
+++ b/parse.y
@@ -4643,13 +4643,16 @@ f_arg_item : f_arg_asgn
| tLPAREN f_margs rparen
{
ID tid = internal_id();
+ YYLTYPE location;
+ location.first_loc = @2.first_loc;
+ location.last_loc = @2.first_loc;
arg_var(tid);
/*%%%*/
if (dyna_in_block()) {
- $2->nd_value = new_dvar(tid, &@2);
+ $2->nd_value = new_dvar(tid, &location);
}
else {
- $2->nd_value = new_lvar(tid, &@2);
+ $2->nd_value = new_lvar(tid, &location);
}
$$ = NEW_ARGS_AUX(tid, 1);
$$->nd_next = $2;