Issue #5204 has been reported by Magnus Holm.

----------------------------------------
Bug #5204: `defined?(@@foo) && @foo` may fail
http://redmine.ruby-lang.org/issues/5204

Author: Magnus Holm
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]


defined?(@@foo) doesn't use the correct cbase.

See https://github.com/ruby/ruby/pull/44 for test and patch.


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