Project

General

Profile

Bug #14214

The direction of branch instruction is broken when block argument is used.

Added by yui-knk (Kaneko Yuichiro) almost 2 years ago. Updated almost 2 years ago.

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

Description

The result of this code is changed

def a(&block)
  block = 1
  p block
  p 2 if block
end

a()
ruby 2.5.0rc1 (2017-12-14 trunk 61243) [x86_64-darwin17]
1
2
ruby 2.5.0dev (2017-12-21 trunk 61384) [x86_64-darwin17]
1

Associated revisions

Revision 85277d5b
Added by ko1 (Koichi Sasada) almost 2 years ago

revert r61371 for [Bug #14214]

Reverted patch doesn't check overwritten value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 61387
Added by ko1 (Koichi Sasada) almost 2 years ago

revert r61371 for [Bug #14214]

Reverted patch doesn't check overwritten value.

Revision 61387
Added by ko1 (Koichi Sasada) almost 2 years ago

revert r61371 for [Bug #14214]

Reverted patch doesn't check overwritten value.

Revision 61387
Added by ko1 (Koichi Sasada) almost 2 years ago

revert r61371 for [Bug #14214]

Reverted patch doesn't check overwritten value.

Revision 7a54b5b4
Added by nobu (Nobuyoshi Nakada) almost 2 years ago

test for [Bug #14214]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1

Updated by ko1 (Koichi Sasada) almost 2 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r61387.


revert r61371 for [Bug #14214]

Reverted patch doesn't check overwritten value.

Also available in: Atom PDF