From 564dd28616b16f5c72ce324b39eac01b3c596279 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 13 Dec 2017 01:10:27 +0000 Subject: [PATCH] parse.y: Revert r61196 * parse.y: Because top_stmts is generated from none (not "/* none */"), @0 is not set by YYLLOC_DEFAULT. So @0 is a meaningless location. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 5d63ff2ee7..2eb1a0e1f8 100644 --- a/parse.y +++ b/parse.y @@ -1205,7 +1205,7 @@ top_compstmt : top_stmts opt_terms top_stmts : none { /*%%%*/ - $$ = new_begin(0, &@0); + $$ = new_begin(0, &@$); /*% $$ = dispatch2(stmts_add, dispatch0(stmts_new), dispatch0(void_stmt));