Issue #11046 has been reported by Koichi Sasada.

----------------------------------------
Bug #11046: __callee__ returns incorrect method name in orphan proc
https://bugs.ruby-lang.org/issues/11046

* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.3.0dev (2015-04-07 trunk 50171) [i386-mswin32_110]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
__callee__ returns incorrect method name in orphan proc.

```ruby
def foo
  1.times{
    p __callee__
  }
  proc{
    __callee__
  }
end

alias bar foo

pr = bar #=> :bar
GC.start
p pr.call #=> :foo
```

Reproduce on 2.0 to 2.3dev.



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