From b1520b7459d7c34ea9e4d6dc8bab615c1430d98d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 May 2014 12:04:04 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ parse.y | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 166a300834..61e1572f70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri May 2 21:04:02 2014 Nobuyoshi Nakada + + * 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] + Fri May 2 11:32:51 2014 Nobuyoshi Nakada * test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer 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);