# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63706] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63706 >
<masak> rakudo: for any(1,2) -> $x {} <p6eval> rakudo ed4cd1: OUTPUT«No exception handler and no message [...] <masak> bug? <bacek> masak: actually no. <masak> why not? <bacek> rakudo: try { for any(1,2) -> $x {}; } <p6eval> rakudo ed4cd1: RESULT«Null PMC access in find_method() [...] * masak submits rakudobug <bacek> rakudo: sub foo { for any(1,2) -> $x {}; }; foo <p6eval> rakudo ed4cd1: RESULT«any(undef, undef)» <masak> there's a return in there somewhere. <bacek> in REPL I see two bugs above. First, the cryptic equivalent of Perl 5's "Can't return outside a subroutine" is thrown for no good reason when for-looping over a junction. Second, a Null PMC access is caused by doing the same inside a try block.