From d88376b1352ad96e35bfc08f2bfce885ed6d72ca Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 20 Feb 2003 03:35:44 +0000 Subject: * parse.y (clhs): allow "Foo::Bar = x". * parse.y (primary): "self[n]=x" can be legal even when "[]=" is private. changes submitted in [ruby-talk:63982] * parse.y (aryset): ditto. * parse.y (attrset): "self.foo=x" can be legal even when "foo=" is private. * eval.c (is_defined): private "[]=" and "foo=" support. * eval.c (rb_eval): ditto. * eval.c (assign): ditto. * eval.c (rb_eval): "foo=" should not always be public. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 49be3b1f6b..a018688046 100644 --- a/gc.c +++ b/gc.c @@ -695,7 +695,6 @@ rb_gc_mark_children(ptr) case NODE_DASGN: case NODE_DASGN_CURR: case NODE_IASGN: - case NODE_CDECL: case NODE_CVDECL: case NODE_CVASGN: case NODE_COLON3: @@ -721,6 +720,7 @@ rb_gc_mark_children(ptr) case NODE_SCOPE: /* 2,3 */ case NODE_BLOCK_PASS: + case NODE_CDECL: rb_gc_mark((VALUE)obj->as.node.u3.node); rb_gc_mark((VALUE)obj->as.node.u2.node); break; -- cgit v1.2.3