summaryrefslogtreecommitdiffstats
path: root/src/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.y b/src/parser.y
index 166cbcc5..ff8ca0d0 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -1078,6 +1078,12 @@ concat_expr : basic_expr
$$ = concat_expr_alloc(&@$);
compound_expr_add($$, $1);
} else {
+ struct location rhs[] = {
+ [1] = @2,
+ [2] = @3,
+ };
+ location_update(&$3->location, rhs, 2);
+
$$ = $1;
$$->location = @$;
}