Issue #8220 has been updated by nobu (Nobuyoshi Nakada).


The parenthesis is interpreted differently between 2.0 and earlier, it
was "interpreted as grouped expression" till 1.9.  That warning has
been removed in 2.0 and now that syntax can be accepted.

That is, the error was a restriction in older versions, and I think
it's not worth replicating.

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

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/