mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
3fb8542b62
commit
b1520b7459
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri May 2 21:04:02 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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 <nobu@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
|
||||
|
|
1
parse.y
1
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);
|
||||
|
|
Loading…
Reference in a new issue