Hi,

At Tue, 20 Apr 2004 09:20:00 +0900,
Ryan Pavlik wrote in [ruby-core:02793]:
> Reproducible segfault:
> 
>     rpav@central:lib% irb
>     irb(main):001:0> self[*foo] += 2
>     (irb):1: [BUG] Segmentation fault
>     ruby 1.8.1 (2003-12-25) [i686-linux]
> 
> Haven't tried this with CVS, but others have verified with 1.8.1.

I guess aref_args should be a list node.


Index: parse.y =================================================================== RCS file: /pub/cvs/ruby/src/ruby/parse.y,v retrieving revision 1.307.2.5 diff -u -2 -p -r1.307.2.5 parse.y --- parse.y 6 Feb 2004 09:27:58 -0000 1.307.2.5 +++ parse.y 20 Apr 2004 01:21:54 -0000 @@ -1229,5 +1229,5 @@ aref_args : none { value_expr($2); - $$ = NEW_NEWLINE(NEW_SPLAT($2)); + $$ = NEW_LIST(NEW_SPLAT($2)); } ;
-- Nobu Nakada