summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-06 06:37:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-06 06:37:40 +0000
commit164abf9f110f54e9e6024855a87937d0b6a99b0e (patch)
tree3f3572f7a122cecb83116bbd3d15746d3148ce37 /parse.y
parent93006c1b1045860d5229abbe99cf356c1aabce9c (diff)
downloadruby-164abf9f110f54e9e6024855a87937d0b6a99b0e.tar.gz
ruby-164abf9f110f54e9e6024855a87937d0b6a99b0e.tar.xz
ruby-164abf9f110f54e9e6024855a87937d0b6a99b0e.zip
* parse.y (arg_dup_check): vid may be nameless internal id.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 5b963aaef..7e26b36f0 100644
--- a/parse.y
+++ b/parse.y
@@ -7886,6 +7886,7 @@ arg_dup_check(ID vid, VALUE m, VALUE list, NODE *node)
VALUE sym;
if (!vid) return 0;
+ if (is_junk_id(vid)) return 0;
sym = ID2SYM(vid);
if ((m && rb_ary_includes(m, sym)) || rb_ary_includes(list, sym)) {
ruby_sourceline = nd_line(node);