ruby-changes:49083
From: yui-knk <ko1@a...>
Date: Wed, 13 Dec 2017 10:10:35 +0900 (JST)
Subject: [ruby-changes:49083] yui-knk:r61198 (trunk): parse.y: Revert r61196
yui-knk 2017-12-13 10:10:27 +0900 (Wed, 13 Dec 2017) New Revision: 61198 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61198 Log: 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. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61197) +++ parse.y (revision 61198) @@ -1205,7 +1205,7 @@ top_compstmt : top_stmts opt_terms https://github.com/ruby/ruby/blob/trunk/parse.y#L1205 top_stmts : none { /*%%%*/ - $$ = new_begin(0, &@0); + $$ = new_begin(0, &@$); /*% $$ = dispatch2(stmts_add, dispatch0(stmts_new), dispatch0(void_stmt)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/