diff --git a/parse.y b/parse.y index efee472e23..1e6fbf46e0 100644 --- a/parse.y +++ b/parse.y @@ -2901,7 +2901,7 @@ primary : literal { /*%%%*/ $$ = NEW_CASE2($3); - nd_set_line($3, $1); + nd_set_line($$, $1); $$->nd_loc = @$; /*% $$ = dispatch2(case, Qnil, $3);