[perl #130761] [OPTIMIZER] An if-block confuses &?ROUTINE to point at the wrong outer routine

2019-04-05 Thread Christian Bartolomaeus via RT
On Thu, 04 Apr 2019 22:59:38 -0700, barto...@gmx.de wrote: > I'm going to unfudge the test in S02-magicals/sub.t for rakudo.jvm. For the record: https://github.com/perl6/roast/commit/aaf7ad02fc

[perl #130761] [OPTIMIZER] An if-block confuses &?ROUTINE to point at the wrong outer routine

2019-04-04 Thread Christian Bartolomaeus via RT
Just for the record: This seems to work on the JVM backend: $ ./perl6-j --optimize=3 -e 'sub f() { sub g() { if True { return &?ROUTINE.name } } }; say f()()' g I'm going to unfudge the test in S02-magicals/sub.t for rakudo.jvm.