Issue #8220 has been updated by nagachika (Tomoyuki Chikanaga).


Hello, nobu.

r40124 fixes a segv but defined? () behaves like defined? nil.
How do you think to raise SyntaxError for defined? () (as 1.9.3).

Thanks,
----------------------------------------
Bug #8220: Segmentation fault when providing defined? operator with empty parentheses
https://bugs.ruby-lang.org/issues/8220#change-38272

Author: RossDavidSmith (Ross Smith)
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]


=begin
Reproducing steps:
 * Execute the code: (({defined? ()}))

Ruby version:
 * ((%ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]%))

Expected result:
 * Expected the same error as ruby 1.9.3:  ((%syntax error, unexpected ')'%))

Actual result:
 * Ruby crashed with the attached error log:
=end


-- 
http://bugs.ruby-lang.org/