Issue #13682 has been updated by shyouhei (Shyouhei Urabe).

Status changed from Closed to Open

Seems incomplete.

```
% ./miniruby -ve 'begin raise ensure return end and self'
ruby 2.5.0dev (2017-06-27 trunk 59183) [x86_64-darwin15]
-- raw disasm--------
 [none]
 0000 trace                1                                           (   1)
 <L001>
 0002 putself                                                          (   1)
 0003 opt_send_without_block <callinfo:raise, 0>, <call cache>         (   1)
 0006 pop                                                              (   1)
 <L002>
 adjust: [label: -1]
 0007 putnil                                                           (   1)
 0008 leave                                                            (   1)
 <L003>
 0009 pop                                                              (   1)
 0010 dup                                                              (   1)
 0011 branchunless         <L000>                                      (   1)
*0013 pop                                                              (   1)
 0014 putself                                                          (   1)
 <L000>
 0015 leave                                                            (   1)
---------------------
-e:1: argument stack underflow (-1)
Traceback (most recent call last):
-e: compile error (SyntaxError)
[1]    48279 exit 1     ./miniruby -ve 'begin raise ensure return end and self'
```

----------------------------------------
Bug #13682: return inside of ensure causes [BUG]
https://bugs.ruby-lang.org/issues/13682#change-65482

* Author: shyouhei (Shyouhei Urabe)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-06-27 trunk 59146) [x86_64-darwin15]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Attached script causes [BUG] Stack consistency error (sp: 7, bp: 6)

---Files--------------------------------
bug.rb (36 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>