Project

General

Profile

Bug #11254

[BUG] no corresponding cfp

Added by nobu (Nobuyoshi Nakada) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:69548]

Description

2.1以降、以下のコードが[BUG] rb_vm_search_cf_from_ep: no corresponding cfpになります。

empty = Object.new
class << empty
  attr_reader :block
  def each(&block)
    @block = block
    self
  end
end
empty.first
empty.block.call
#1

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

  • Status changed from Assigned to Closed

Applied in changeset r50850.


vm.c: break from orphan block

  • vm.c (rb_vm_search_cf_from_ep): break from orphan block is possible condition, but not [BUG]. [ruby-core:69548] [Bug #11254]

Updated by nagachika (Tomoyuki Chikanaga) about 5 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

Backported into ruby_2_2 at r51129.

Also available in: Atom PDF