summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-02 12:04:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-02 12:04:04 +0000
commitb1520b7459d7c34ea9e4d6dc8bab615c1430d98d (patch)
treec7a7f6dc5acaf9d34208f443900ad1fe78a7e3ce /parse.y
parent3fb8542b626128c2d15308fc6cb86792c01bac42 (diff)
parse.y: fix wrong static symbol
* parse.y (next_id): no reason to set ID_STATIC_SYM here, as ID returned by rb_intern3 can be a dynamic symbol and the static symbol flag is set otherwise. [Bug #9787] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index df90ab5e3c..5bd27998ba 100644
--- a/parse.y
+++ b/parse.y
@@ -10609,7 +10609,6 @@ next_id(VALUE str)
if (last > 1 && name[last-1] == '=')
goto junk;
id = rb_intern3(name, last, enc);
- id |= ID_STATIC_SYM;
if (id > tLAST_OP_ID && !is_attrset_id(id)) {
enc = rb_enc_get(rb_id2str(id));
id = rb_id_attrset(id);