Project

General

Profile

Actions

Bug #7870

closed

Time.now == "" causes an infinite loop

Added by drbrain (Eric Hodel) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2013-02-08) [x86_64-darwin12.2.1]
Backport:
[ruby-core:52305]

Description

=begin
This is a regression from 1.9.

2.0.0 branch:

$ ./ruby20 -v ../branches/ruby_2_0_0/test.rb
ruby 2.0.0dev (2013-02-08) [x86_64-darwin12.2.1]
../branches/ruby_2_0_0/test.rb:1: warning: possibly useless use of == in void context
../branches/ruby_2_0_0/test.rb:1: stack level too deep (SystemStackError)

1.9:

$ ruby19 -v test.rb
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]
test.rb:1: warning: possibly useless use of == in void context

This also reproduces in trunk.

=end


Related issues 1 (0 open1 closed)

Related to Backport200 - Backport #7875: Backport r39292 to 2.0.0 which fixes #7870Closeddrbrain (Eric Hodel)02/18/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0