From: usa@... Date: 2016-04-22T08:07:56+00:00 Subject: [ruby-core:75103] [Ruby trunk Bug#12082] Tail-calling method can't catch exception raised by tail-called method Issue #12082 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- Bug #12082: Tail-calling method can't catch exception raised by tail-called method https://bugs.ruby-lang.org/issues/12082#change-58233 * Author: Kazuki Yamaguchi * Status: Closed * Priority: Normal * Assignee: Koichi Sasada * ruby -v: * Backport: 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- The following code doesn't work as expected, on all versions of Ruby with tail call optimization (1.9.1 to 2.3.0). ~~~ruby def do_raise raise "should be rescued" end options = { tailcall_optimization: true, trace_instruction: false, } RubyVM::InstructionSequence.compile(<