summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 15:23:41 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 15:23:41 +0000
commit563762f6c54ac7f6ceaee49f7212ab56eb2d2d06 (patch)
tree6b60d0823b07b64079bc16178f31476b560cb88b /parse.y
parentb712455f98ad4e7ef9c44d8384192369aaa77b62 (diff)
* parse.y (primary): remove wrong "fixpos" that caused incorrect
source_location of blocks. [ruby-core:42232] [Bug #5930] * test/ruby/test_proc.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 0 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e784e8b432..6de9cb36a4 100644
--- a/parse.y
+++ b/parse.y
@@ -2813,7 +2813,6 @@ primary : literal
/*%%%*/
$2->nd_iter = NEW_FCALL($1, 0);
$$ = $2;
- fixpos($2->nd_iter, $2);
/*%
$$ = method_arg(dispatch1(fcall, $1), arg_new());
$$ = method_add_block($$, $2);
@@ -2826,7 +2825,6 @@ primary : literal
block_dup_check($1->nd_args, $2);
$2->nd_iter = $1;
$$ = $2;
- fixpos($$, $1);
/*%
$$ = method_add_block($1, $2);
%*/