summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-18 08:06:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-18 08:06:09 +0000
commitfc20fdcbc8c76961151a26c6fdba97821826dc40 (patch)
tree418d0474a05ef29bba0c8c7b6c0fed18488c5ff6 /parse.y
parent1e6cdc00e7bb33571016ce8a48a93a586b6ba6a8 (diff)
* parse.y (f_rest_arg): store rest args into invisible local variabe
in order to get rid of SEGV at ZSUPER. [ruby-dev:24913] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index bf42162c93..00a458f946 100644
--- a/parse.y
+++ b/parse.y
@@ -3973,7 +3973,7 @@ f_rest_arg : restarg_mark tIDENTIFIER
| restarg_mark
{
/*%%%*/
- $$ = -2;
+ $$ = local_append((ID)0);
/*%
$$ = dispatch1(restparam, Qnil);
%*/