[前][次][番号順一覧][スレッド一覧]

ruby-changes:33707

From: nobu <ko1@a...>
Date: Fri, 2 May 2014 21:04:12 +0900 (JST)
Subject: [ruby-changes:33707] nobu:r45788 (trunk): parse.y: fix wrong static symbol

nobu	2014-05-02 21:04:04 +0900 (Fri, 02 May 2014)

  New Revision: 45788

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45788

  Log:
    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]

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45787)
+++ ChangeLog	(revision 45788)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May  2 21:04:02 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
Index: parse.y
===================================================================
--- parse.y	(revision 45787)
+++ parse.y	(revision 45788)
@@ -10609,7 +10609,6 @@ next_id(VALUE str) https://github.com/ruby/ruby/blob/trunk/parse.y#L10609
 	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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]